Skip to content

Comments

[WIP] Parse some P? and any P? as (some P)? and (any P)?.#3268

Draft
allevato wants to merge 1 commit intoswiftlang:mainfrom
allevato:optional-someany
Draft

[WIP] Parse some P? and any P? as (some P)? and (any P)?.#3268
allevato wants to merge 1 commit intoswiftlang:mainfrom
allevato:optional-someany

Conversation

@allevato
Copy link
Member

Work toward the change pitched at https://forums.swift.org/t/pitch-allow-some-p-and-any-p-removing-the-need-for-parentheses/84656.

This isn't quite done. I'm having trouble with the diagnostic for some P & Q?. I think ParseDiagnosticsGenerator never actually gets into my new visitor logic because the node itself doesn't have the error flag set in the parser. I need to figure out the best way to set that.

The swiftlang/swift PR will be updated to move the changes into the C++ parser later; I still have some tests to fix.

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