@@ -106,7 +106,7 @@ import SwiftSyntax
106106 case . memberBlock:
107107 let names = introducedNames ( using: . memberBlock)
108108 . filter { lookupName in
109- checkName ( name , refersTo: lookupName, at: syntax)
109+ checkName ( identifier , refersTo: lookupName, at: syntax)
110110 }
111111
112112 return names. isEmpty ? [ ] : [ . fromFileScope( self , withNames: names) ]
@@ -124,7 +124,7 @@ import SwiftSyntax
124124 if item. is ( DeclSyntax . self) || item. is ( VariableDeclSyntax . self) {
125125 let foundNames = LookupName . getNames ( from: item)
126126
127- members. append ( contentsOf: foundNames. filter { checkName ( name , refersTo: $0, at: syntax) } )
127+ members. append ( contentsOf: foundNames. filter { checkName ( identifier , refersTo: $0, at: syntax) } )
128128 } else {
129129 encounteredNonDeclaration = true
130130 sequentialItems. append ( codeBlockItem)
@@ -284,9 +284,9 @@ import SwiftSyntax
284284 state: LookupState
285285 ) -> [ LookupResult ] {
286286 if let elseBody, elseBody. position <= syntax. position, elseBody. endPosition >= syntax. position {
287- return lookupInParent ( for: name , at: syntax, with: config, state: state)
287+ return lookupInParent ( for: identifier , at: syntax, with: config, state: state)
288288 } else {
289- return defaultLookupImplementation ( for: name , at: syntax, with: config, state: state)
289+ return defaultLookupImplementation ( for: identifier , at: syntax, with: config, state: state)
290290 }
291291 }
292292}
@@ -310,7 +310,7 @@ import SwiftSyntax
310310 let names = conditions. flatMap { element in
311311 LookupName . getNames ( from: element. condition, accessibleAfter: element. endPosition)
312312 } . filter { introducedName in
313- checkName ( name , refersTo: introducedName, at: syntax)
313+ checkName ( identifier , refersTo: introducedName, at: syntax)
314314 }
315315
316316 return names. isEmpty ? [ ] : [ . fromScope( self , withNames: names) ]
0 commit comments