Skip to content

[Concurrency] Fix syntax tree creation #33333

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 7, 2020

Conversation

DougGregor
Copy link
Member

Fixes bugs in the description and creation of the syntax tree for the experimental concurrency syntax:

  • async wasn't modeled correctly in the syntax tree
  • async and throws were handled in the wrong order for function types
  • __await expressions were creating the wrong syntax nodes

... all because I forgot to add a -verify-syntax-tree test. Fix that mistake.

I had used the wrong kind of token for the contextual 'async' keyword
(consistently), as well as flipping the order of async/throws when
creating syntax nodes in the parser. Add a `-verify-syntax-tree` test
with valid syntax to ensure that we don't make this mistake again.

Problem found by Nate Chandler, thanks!
@DougGregor
Copy link
Member Author

@swift-ci please smoke test

swiftlang/swift-syntax#233

@DougGregor
Copy link
Member Author

SwiftSyntax update for this: swiftlang/swift-syntax#233

@DougGregor
Copy link
Member Author

@swift-ci smoke test

swiftlang/swift-syntax#233

1 similar comment
@DougGregor
Copy link
Member Author

@swift-ci smoke test

swiftlang/swift-syntax#233

@DougGregor
Copy link
Member Author

swiftlang/swift-syntax#233

@swift-ci smoke test

@DougGregor
Copy link
Member Author

swiftlang/swift-syntax#233

@swift-ci smoke test

1 similar comment
@DougGregor
Copy link
Member Author

swiftlang/swift-syntax#233

@swift-ci smoke test

@DougGregor
Copy link
Member Author

@swift-ci smoke test Linux

@DougGregor
Copy link
Member Author

@swift-ci test Windows

@DougGregor DougGregor merged commit 003ca97 into swiftlang:master Aug 7, 2020
@DougGregor DougGregor deleted the concurrency-syntax-fixes branch August 7, 2020 07:35
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