swift-syntax
swift-syntax copied to clipboard
[SwiftLexicalLookup] Add dollar identifier, better extension handling and more `ASTScope` related fixes
This PR brings more ASTScope related fixes to SwiftLexicalLookup. Those include:
- Prompting clients to lookup generic parameters of extended types inside extensions with
LookupResult.lookInGenericParametersOfExtendedType. - Dollar identifier handling through
LookupResult.mightIntroduceDollarIdentifiersresult kind when looking up foridentifier = niland more explicitLookupName.dollarIdentifierwhen looking up for a particular dollar identifier. - Remove member and file scope handling to avoid confusion and incomplete member lookup.
- Fix behavior of lookup from
whereclauses. - And more fine grained fixes.
@swift-ci Please test
@swift-ci please test Windows
@swift-ci Please test
@swift-ci please test Windows
@swift-ci please test Windows