Skip to content

[Sema] Teach typeCheckASTNodeAtLoc to check StmtConditionElement #62637

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 1 commit into from
Jan 31, 2023

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Dec 16, 2022

Extracted from #62574 to test its impact on code completion individually.


Type checking a StmtConditionElement is slightly different than type checking the VarDecl declared by it because it doesn’t complain about redeclaration like if let myVar = myVar. Thus, we need to handle it in typeCheckASTNodeAtLoc

Type checking a StmtConditionElement is slightly different than type checking the VarDecl declared by it because it doesn’t complain about redeclaration like `if let myVar = myVar`. Thus, we need to handle it in `typeCheckASTNodeAtLoc`
@ahoppen ahoppen requested review from xedin and rintaro December 16, 2022 10:25
@ahoppen
Copy link
Member Author

ahoppen commented Dec 16, 2022

@swift-ci Please smoke test

@ahoppen
Copy link
Member Author

ahoppen commented Dec 16, 2022

@swift-ci Please SourceKit stress test

@ahoppen
Copy link
Member Author

ahoppen commented Dec 30, 2022

No performance impact on code completion as measured by the stress tester.

@ahoppen
Copy link
Member Author

ahoppen commented Jan 4, 2023

@swift-ci Please smoke test

@ahoppen
Copy link
Member Author

ahoppen commented Jan 4, 2023

@swift-ci Please SourceKit stress test

@ahoppen
Copy link
Member Author

ahoppen commented Jan 30, 2023

@swift-ci Please smoke test

@ahoppen
Copy link
Member Author

ahoppen commented Jan 30, 2023

@swift-ci Please SourceKit stress test

@ahoppen ahoppen merged commit ab8b4a2 into swiftlang:main Jan 31, 2023
@ahoppen ahoppen deleted the ahoppen/stmtcondition-at-loc branch January 31, 2023 20:12
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.

3 participants