Skip to content

AST: Find local property wrappers in ASTScope::lookupLocalDecls() #34164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

slavapestov
Copy link
Contributor

I broke the build with #34135, because @hborla merged a PR and I didn't re-run the tests after that. The problem is there's now another AbstractASTScopeDeclConsumer subclass that needs to handle local property wrappers.

There's a bit of code duplication now; I'm going to clean it up later once CI is unblocked.

@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@slavapestov slavapestov force-pushed the fix-local-property-wrappers branch from 7f43243 to 6ce876e Compare October 2, 2020 18:12
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@compnerd
Copy link
Member

compnerd commented Oct 2, 2020

@swift-ci please test windows platform

Two fixes here:

- The ASTScopeDeclConsumerForLocalLookup needs to visit auxiliary variables
- preCheckExpression() should call ASTScope::lookupLocalDecls() even when
  parser lookup is enabled, since otherwise we won't be able to find
  auxiliary decls in the current DeclContext.
@slavapestov slavapestov force-pushed the fix-local-property-wrappers branch from 6ce876e to 554e0f9 Compare October 2, 2020 18:41
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@slavapestov
Copy link
Contributor Author

@swift-ci Please test Windows

@slavapestov slavapestov merged commit 836a8ee into swiftlang:main Oct 2, 2020
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.

2 participants