Skip to content

Conversation

@hamishknight
Copy link
Contributor

No description provided.

@hamishknight hamishknight force-pushed the express-yourself branch 4 times, most recently from 4dd6e27 to ea6b1d9 Compare December 8, 2022 18:34
@hamishknight hamishknight force-pushed the express-yourself branch 4 times, most recently from c095f42 to 5820ec1 Compare December 16, 2022 11:51
@hamishknight hamishknight force-pushed the express-yourself branch 8 times, most recently from 4b3d132 to 8df9193 Compare January 12, 2023 21:49
This was recently removed, but will represent an
if/switch expression when used as a statement.
This replaces IfStmtSyntax, and will be wrapped in
an ExpressionStmtSyntax when used as a statement.
Update the parser to support parsing IfExprSyntax.
For now, this only updates the existing statement
parsing, and does not attempt to parse in
expression position.
This replaces SwitchStmtSyntax, and will be
wrapped in an ExpressionStmtSyntax when used as a
statement.
Update the parser to support parsing SwitchExprSyntax.
For now, this only updates the existing statement
parsing, and does not attempt to parse in
expression position.
Start parsing if and switch expressions as unary
expressions (as we don't allow postfix grammar for
them). In addition, parse if/switch expressions
in statement position if we see a
`try`/`await`/`move`, or a trailing `as Type`.
@hamishknight
Copy link
Contributor Author

@hamishknight
Copy link
Contributor Author

Continuing on #1228

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