Merge pull request #1630 from aschackmull/java/switchexpr-tostring

Java: Add toString override for SwitchExpr.
This commit is contained in:
yh-semmle
2019-07-26 11:32:24 -04:00
committed by GitHub

View File

@@ -1121,6 +1121,9 @@ class SwitchExpr extends Expr, @switchexpr {
break.(JumpStmt).getTarget() = this and result = break.getValue()
)
}
/** Gets a printable representation of this expression. */
override string toString() { result = "switch (...)" }
}
/** A parenthesised expression. */