-
Notifications
You must be signed in to change notification settings - Fork 356
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
Don't crash on switch expressions or switch statements with arrow cases. #4976
Conversation
*/ | ||
public Node visitSwitchExpression17(Tree switchExpressionTree, Void p) { | ||
// TODO: Analyze switch expressions properly. | ||
return new MarkerNode( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I decided not to add a SwitchExpressionNode, because I wasn't sure what fields it would need when we properly implement switch expressions.
This change prevents crashes not only for |
Yes. I'll update the change log, PR title to make this clear. |
I added an issue to track the remaining switch expressions todos: #4977.
Fixes #4911.