Skip to content

Swift: fix synthesized wrapper decls #11231

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
merged 5 commits into from
Nov 11, 2022

Conversation

redsun82
Copy link
Contributor

@redsun82 redsun82 commented Nov 11, 2022

There are synthesized VarDecl and PatternBindingDecl related to property wrappers that were not correctly placed in the AST tree, which amonf other things was causing flakiness of the PrintAst test.

This fixes that, by placing these entities under the VarDecl introducing them.

Both the IDE printAst.ql query and the test toBeTested predicate have also been extended to include descendants even when these do not have a location.

Commit by commit review is encouraged. The first commit is only a schema.py change.

This is the relevant change to the PrintAst.expected file that can help explaining most of the PR:
41977d1#diff-0fbb63a98340427775b9c85b0b287275acaa40d0d7ce263393c604c253db0425

@redsun82 redsun82 requested a review from a team as a code owner November 11, 2022 11:55
@github-actions github-actions bot added the Swift label Nov 11, 2022
@redsun82 redsun82 merged commit d567ab3 into main Nov 11, 2022
@redsun82 redsun82 deleted the redsun82/swift-fix-synthesized-wrapper-decls branch November 11, 2022 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants