-
Notifications
You must be signed in to change notification settings - Fork 376
Make JavaExpressionParseUtil
handle ConditionalExpression
#7045
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
base: master
Are you sure you want to change the base?
Make JavaExpressionParseUtil
handle ConditionalExpression
#7045
Conversation
…-ConditionalExpression
…-ConditionalExpression
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 don't understand how this is related to #6520. Are you trying to parser all possible JavaExpressions? I looked in to how to fix #6750, which I just noticed is a duplicate of #6520, and think that the in come cases we should infer top rather than an annotation with a parse error. I've implemented this in #7052.
} | ||
} | ||
// Now `type` is set. | ||
return new Unknown(type, expr.toString()); |
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.
This should return a new JavaExpression for conditional expressions.
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.
Does such an expression exist? I was trying to avoid implementing it if possible, though I could do so.
…-ConditionalExpression
My fix for #6520 (in my |
…-ConditionalExpression
…-ConditionalExpression
…-ConditionalExpression
Merge before fix for #6520.
The test for this appears in the fix for #6520.