Skip to content

Improve diagnostics for invalid identifiers #750

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
Sep 8, 2022

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Sep 8, 2022

The pattern here is that we’ll consume the invalid identifier as an unknown token and place it into the unexpected tokens in front of the identifier, which has been synthesized as missing. The diagnostic generator will detect this pattern and emit a matching diagnostic.

@ahoppen
Copy link
Member Author

ahoppen commented Sep 8, 2022

@swift-ci Please test

@CodaFi CodaFi merged commit ada5bb3 into swiftlang:main Sep 8, 2022
@ahoppen ahoppen deleted the ahoppen/80-invalid-identifier-diags branch January 14, 2023 08:21
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