Skip to content

[SourceKit] Allow generation of cursor info for declarations from solutions that haven’t aren’t applied to the AST #72370

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

ahoppen
Copy link
Member

@ahoppen ahoppen commented Mar 16, 2024

This has two benefits:

  1. We can now report ambiguous variable types
  2. We are more robust in the generation of results for declarations inside closures. If the closure has an error, we won’t apply the solution to the AST and thus any cursor info that tried to get types out of the AST would fail.

rdar://123845208

@ahoppen ahoppen changed the title [SourceKit] Allow generation of cursor info for declarations from solutions that haven’t aren’t applied to the AST ye [SourceKit] Allow generation of cursor info for declarations from solutions that haven’t aren’t applied to the AST Mar 16, 2024
@ahoppen
Copy link
Member Author

ahoppen commented Mar 16, 2024

@swift-ci Please smoke test

@ahoppen ahoppen force-pushed the ahoppen/decl-cursor-info-from-solution branch from 3ef6543 to 9955365 Compare March 17, 2024 04:01
@ahoppen
Copy link
Member Author

ahoppen commented Mar 17, 2024

@swift-ci Please smoke test

…utions that haven’t aren’t applied to the AST ye

This has two benefits:
1. We can now report ambiguous variable types
2. We are more robust in the generation of results for declarations inside closures. If the closure has an error, we won’t apply the solution to the AST and thus any cursor info that tried to get types out of the AST would fail.

rdar://123845208
@ahoppen ahoppen force-pushed the ahoppen/decl-cursor-info-from-solution branch from 9955365 to ef3e1c1 Compare March 20, 2024 13:55
@ahoppen
Copy link
Member Author

ahoppen commented Mar 20, 2024

@swift-ci Please smoke test

@ahoppen
Copy link
Member Author

ahoppen commented Mar 21, 2024

@swift-ci Please smoke test Linux

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