Skip to content

[ASTGen] Implement SequenceExpr generation #70168

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
Dec 4, 2023

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Dec 1, 2023

Implement arrowExpr, assignmentExpr, binaryOperatorExpr, discardAssignmentExpr, postfixOperatorExpr , prefixOperatorExpr , sequenceExpr, typeExpr unresolvedAsExpr, unresolvedIsExpr, and unresolvedTernaryExpr.

@rintaro
Copy link
Member Author

rintaro commented Dec 1, 2023

@swift-ci Please smoke test

@rintaro rintaro requested a review from hamishknight December 1, 2023 19:33
@rintaro rintaro force-pushed the astgen-sequenceexpr branch 4 times, most recently from a21d732 to 42d151f Compare December 1, 2023 20:20
@rintaro
Copy link
Member Author

rintaro commented Dec 1, 2023

@swift-ci Please smoke test

@rintaro
Copy link
Member Author

rintaro commented Dec 2, 2023

@swift-ci Please test Windows

Copy link
Contributor

@hamishknight hamishknight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@rintaro rintaro force-pushed the astgen-sequenceexpr branch from 42d151f to 0c111ac Compare December 4, 2023 14:53
@rintaro
Copy link
Member Author

rintaro commented Dec 4, 2023

@swift-ci Please smoke test

@rintaro rintaro merged commit a7a0b32 into swiftlang:main Dec 4, 2023
asLoc: asLoc,
type: type
).asExpr
case let question? where question.text == "?":
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to check where question.tokenKind == .postfixQuestionMark instead of doing the string comparison. Similar below for ! which should check for .exclamationMark.

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.

3 participants