Skip to content

Conversation

hamishknight
Copy link
Contributor

  • Turn BindExtensionsForIDEInspectionRequest into the main extension binding request.
  • Change ExtendedNominalRequest such that it's no longer what extension binding calls into to do the name lookup, instead it calls directly into computeExtendedNominal. getExtendedNominal can then be the entrypoint for ExtendedNominalRequest and assumes that extension binding has already run. This avoids needing to fake the dependency relationship in the DeclChecker.

I missed this in my previous patch that moved extension binding until
after we've mutated the AST for IDE inspection, this ad-hoc extension
binding logic is no longer necessary.
This will mainly be useful once extension binding is fully
requestified, but even now it's a good idea to ensure module loading
isn't kicking name lookup.
@hamishknight
Copy link
Contributor Author

hamishknight commented Aug 17, 2025

@hamishknight
Copy link
Contributor Author

hamishknight commented Aug 17, 2025

- Turn `BindExtensionsForIDEInspectionRequest` into the main extension
binding request.
- Change `ExtendedNominalRequest` such that it's no longer what
extension binding calls into to do the name lookup, instead it calls
directly into `computeExtendedNominal`. `getExtendedNominal` can
then be the entrypoint for `ExtendedNominalRequest` and assumes that
extension binding has already run. This avoids needing to fake the
dependency relationship in the DeclChecker.
@hamishknight
Copy link
Contributor Author

swiftlang/llvm-project#11189

@swift-ci please test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant