Skip to content

[6.0][SourceKit] Don't use SourceEntitityWalker for placeholder expansion #73418

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

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented May 3, 2024

cherry-pick #73394 into release/6.0

  • Explanation: Placeholder expansion should be a syntactic operation, but SourceEntityWalker can invoke type checking operations, which causes unexpected behaviors including crashes. Instead use ASTWalker.
  • Scope: SourceKit placeholder expansion
  • Risk: Low. There was no reason to use SourceEntityWalker, using ASTWalker for similar operation is well tested
  • Testing: Added a regression test case
  • Issue: rdar://121360941
  • Reviewer: Hamish Knight (@hamishknight) Alex Hoppen (@ahoppen)

Placeholder expansion should be a syntactic operation, but
`SourceEntityWalker` can invoke type checking operations, which causes
unexpected bahaviors including crashes.

rdar://121360941`
(cherry picked from commit 6264792)
@rintaro rintaro requested a review from a team as a code owner May 3, 2024 17:10
@rintaro
Copy link
Member Author

rintaro commented May 3, 2024

@swift-ci Please test

@rintaro rintaro enabled auto-merge May 3, 2024 20:14
@rintaro rintaro merged commit 66403d9 into swiftlang:release/6.0 May 3, 2024
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