@@ -17,7 +17,7 @@ public enum LookupResult {
1717 /// Scope and the names that matched lookup.
1818 case fromScope( Syntax , withNames: [ LookupName ] )
1919 /// Indicates where to perform member lookup.
20- case lookInMembers ( Syntax )
20+ case lookForMembers ( in : Syntax )
2121 /// Indicates to lookup generic parameters of extended type.
2222 ///
2323 /// ### Example
@@ -28,10 +28,10 @@ public enum LookupResult {
2828 /// }
2929 /// }
3030 /// ```
31- /// For a lookup started at the marked position, `lookInGenericParametersOfExtendedType `
31+ /// For a lookup started at the marked position, `lookForGenericParameters `
3232 /// will be included as one of the results prompting the client
3333 /// to lookup the generic parameters of of the extended `Foo` type.
34- case lookInGenericParametersOfExtendedType ( ExtensionDeclSyntax )
34+ case lookForGenericParameters ( of : ExtensionDeclSyntax )
3535 /// Indicates this closure expression could introduce dollar identifiers.
3636 ///
3737 /// ### Example
@@ -43,22 +43,19 @@ public enum LookupResult {
4343 /// }
4444 /// ```
4545 /// When looking up for any identifier at the indicated position,
46- /// the result will include `mightIntroduceDollarIdentifiers`
47- /// result kind. If it's performed for a dollar identifier, `LookupName.dollarIdentifier`
48- /// with the appropriate identifier will be used in the
49- /// result associated with the closure expression inside `a`.
50- case mightIntroduceDollarIdentifiers( ClosureExprSyntax )
46+ /// the result will include `lookForImplicitClosureParameters`.
47+ case lookForImplicitClosureParameters( ClosureExprSyntax )
5148
5249 /// Associated scope.
5350 public var scope : SyntaxProtocol {
5451 switch self {
5552 case . fromScope( let scopeSyntax, _) :
5653 return scopeSyntax
57- case . lookInMembers ( let lookInMemb) :
54+ case . lookForMembers ( let lookInMemb) :
5855 return lookInMemb
59- case . lookInGenericParametersOfExtendedType ( let extensionDecl) :
56+ case . lookForGenericParameters ( let extensionDecl) :
6057 return extensionDecl
61- case . mightIntroduceDollarIdentifiers ( let closureExpr) :
58+ case . lookForImplicitClosureParameters ( let closureExpr) :
6259 return closureExpr
6360 }
6461 }
@@ -68,9 +65,9 @@ public enum LookupResult {
6865 switch self {
6966 case . fromScope( _, let names) :
7067 return names
71- case . lookInMembers ( _) ,
72- . lookInGenericParametersOfExtendedType ( _) ,
73- . mightIntroduceDollarIdentifiers ( _) :
68+ case . lookForMembers ( _) ,
69+ . lookForGenericParameters ( _) ,
70+ . lookForImplicitClosureParameters ( _) :
7471 return [ ]
7572 }
7673 }
@@ -90,7 +87,7 @@ public enum LookupResult {
9087 + ( ( Syntax ( scope) . asProtocol ( SyntaxProtocol . self) as? ScopeSyntax ) ? . scopeDebugDescription ?? " NOT-A-SCOPE " )
9188
9289 switch self {
93- case . lookInMembers :
90+ case . lookForMembers :
9491 break
9592 default :
9693 if !names. isEmpty {
@@ -114,12 +111,12 @@ public enum LookupResult {
114111 switch self {
115112 case . fromScope:
116113 return " fromScope "
117- case . lookInMembers :
118- return " lookInMembers "
119- case . lookInGenericParametersOfExtendedType ( _) :
120- return " lookInGenericParametersOfExtendedType "
121- case . mightIntroduceDollarIdentifiers ( _) :
122- return " mightIntroduceDollarIdentifiers "
114+ case . lookForMembers :
115+ return " lookForMembers "
116+ case . lookForGenericParameters ( _) :
117+ return " lookForGenericParameters "
118+ case . lookForImplicitClosureParameters ( _) :
119+ return " lookForImplicitClosureParameters "
123120 }
124121 }
125122}
0 commit comments