Skip to content

Fix parser issues found by asserting that self-parsing should not produce diagnostics #625

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 4 commits into from
Aug 24, 2022

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Aug 23, 2022

Flip the switch on AssertParse to check that no diagnostics are produced by default. Also check that no diagnostics are produced during the self-parse.

Making this change required two changes to:

  • Fix an issue in attribute skipping, where we previously weren’t consuming ) while skipping attributes
  • Split a line in swift-parser-test.swift to disambiguate it as not being parsed as a regex literal (rdar://98736315)

In a follow-up PR, I will change the AssertParse statements that now allowErrors to check that the correct diagnostics are produced.

rdar://98575270

@ahoppen ahoppen requested a review from CodaFi August 23, 2022 08:45
@ahoppen
Copy link
Member Author

ahoppen commented Aug 23, 2022

@swift-ci Please test

@ahoppen ahoppen merged commit 7012611 into swiftlang:main Aug 24, 2022
@ahoppen ahoppen deleted the pr/self-parsing-fixes branch August 24, 2022 07:19
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