Skip to content

A couple of cleanups around operator and precedence groups #31467

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 3 commits into from
May 1, 2020

Conversation

hamishknight
Copy link
Contributor

In preparation for re-writing the operator decl lookup logic.

And handle a cycle specially rather than defaulting
to nullptr and doing another lookup to check.
Store an array of Located<Identifier> instead of
an array of Identifiers and SourceLocs on
OperatorDecl. This allows us to cleanup
OperatorPrecedenceGroupRequest a little.
The parser should ensure that we never encounter
this case.
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight hamishknight requested a review from CodaFi May 1, 2020 17:48
@hamishknight hamishknight merged commit 27ed4a9 into swiftlang:master May 1, 2020
@hamishknight hamishknight deleted the mix-fix branch May 1, 2020 20:06
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