Skip to content

A Grab Bag of Miscellaneous Parser Fixes #793

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 9 commits into from
Sep 14, 2022

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Sep 14, 2022

  • Parse ellipses in tuple types for variadic closure parameters
  • Correct the parsing of @_implements
  • Parse open(set) correctly
  • Expand function parameters to accept isolated and _const
  • Respect the keypath bracket member disambiguation rule
  • Correct a bogus condition in expression type parsing for existentials
  • Parse @_semantics("...")

This patchset gets us all the way through the compiler's validation tests (minus the two structural tests)

Swift test progress: 8264/8334 passes

@CodaFi CodaFi requested a review from ahoppen as a code owner September 14, 2022 08:21
@CodaFi
Copy link
Contributor Author

CodaFi commented Sep 14, 2022

@swift-ci test

Fixup the definition of the attribute to accept a token and a set of arguments - like the rest of the DeclName-based productions. Then parse these arguments.
@CodaFi
Copy link
Contributor Author

CodaFi commented Sep 14, 2022

@swift-ci test

@CodaFi
Copy link
Contributor Author

CodaFi commented Sep 14, 2022

@CodaFi CodaFi merged commit 892b73b into swiftlang:main Sep 14, 2022
@CodaFi CodaFi deleted the a-touch-of-gray branch September 14, 2022 23:03
CodaFi added a commit to CodaFi/swift that referenced this pull request Sep 15, 2022
This broke in swiftlang/swift-syntax#793 when
I updated the function parameter declaration representation to
include isolated and const.
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.

1 participant