-
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
Fully support switch expressions #4977
Comments
@Gellert5225 has started looking into handling arrow case labels in switch statements, but he is not looking at switch expressions. When I spoke to @mernst we decided the work for statements and expressions could be done somewhat in parallel, but if you think closer coordination is warranted, let us know and we can discuss further. |
|
Ok, sounds good, @Gellert5225 and I will communicate / open PRs as we make progress. |
All the tasks have been fixed, so I'm closing this issue. |
#4976 makes it so that the Checker Framework doesn't not crash on switch expressions, but it does not handle them as precisely as possible. Here's a list of TODOs to finish supporting switch expressions:
TypeFromExpressionVisitor.java
: Correctly compute the type of switch expressions. (Compute the type of switch expressions and check them. #4978)BaseTypeVisitor.java
: Check that the type of the result expressions of the switch expression are subtypes of the type of the switch expression. (Compute the type of switch expressions and check them. #4978)CFGTranslationPhaseOne.java
: analyze switch expressions. (Add support for switch expressions in dataflow #4982)BaseTypeVisitor.java
:JointJavacJavaParserVisitor
needs to be updated to handle switch expressions. (JointJavacJavaParserVisitor now handles switch expressions #4992)The text was updated successfully, but these errors were encountered: