Skip to content

Fix parsing attributes at the start of an accessor #756

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 9, 2022
Merged

Fix parsing attributes at the start of an accessor #756

merged 1 commit into from
Sep 9, 2022

Conversation

liamrosenfeld
Copy link
Contributor

Previously, it would consume an attribute without adding it to the tree if an identifier is not found. Now, it looks ahead to confirm there is an identifier before consuming.

Added two test cases to verify parseAccessorIntroducer

Fixes: #677

Previously, it would consume an attribute without adding it to the tree if an identifier is not found. Now, it looks ahead to confirm there is an identifier before consuming.

Added two test cases to verify parseAccessorIntroducer

Fixes: #677
@CodaFi
Copy link
Contributor

CodaFi commented Sep 9, 2022

Excellent. Thanks for tackling this

@swift-ci test

@CodaFi CodaFi merged commit 4f1286f into swiftlang:main Sep 9, 2022
@liamrosenfeld liamrosenfeld deleted the 677-fix branch September 9, 2022 02:54
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.

Round-trip failure with malformed property
2 participants