Skip to content

Only allow postfixQuestionMark as the question mark after init #1985

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
Aug 27, 2023

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Aug 2, 2023

We allowed both postfixQuestionMark and infixQuestionMark because we didn’t know as which token kind the lexer classified the question mark. But we can just remap the kind in the parser to simplify the syntax node.

@ahoppen ahoppen requested a review from bnbarham August 2, 2023 22:03
@ahoppen
Copy link
Member Author

ahoppen commented Aug 2, 2023

@swift-ci Please test

@ahoppen ahoppen marked this pull request as draft August 3, 2023 21:12
@ahoppen ahoppen marked this pull request as ready for review August 18, 2023 17:24
@ahoppen ahoppen force-pushed the ahoppen/initializer-optional-mark branch 2 times, most recently from e336e73 to 751fcf7 Compare August 18, 2023 17:30
@ahoppen
Copy link
Member Author

ahoppen commented Aug 18, 2023

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Aug 21, 2023

@swift-ci Please test macOS

@ahoppen
Copy link
Member Author

ahoppen commented Aug 21, 2023

@swift-ci Please test Windows

@ahoppen
Copy link
Member Author

ahoppen commented Aug 23, 2023

@swift-ci Please test macOS

We allowed both `postfixQuestionMark` and `infixQuestionMark` because we didn’t know as which token kind the lexer classified the question mark. But we can just remap the kind in the parser to simplify the syntax node.
@ahoppen ahoppen force-pushed the ahoppen/initializer-optional-mark branch from 751fcf7 to 73bb69f Compare August 27, 2023 04:11
@ahoppen
Copy link
Member Author

ahoppen commented Aug 27, 2023

@swift-ci Please test

@ahoppen ahoppen enabled auto-merge August 27, 2023 04:12
@ahoppen
Copy link
Member Author

ahoppen commented Aug 27, 2023

@swift-ci Please test Windows

@ahoppen ahoppen merged commit e99a573 into swiftlang:main Aug 27, 2023
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