mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Merge pull request #1630 from aschackmull/java/switchexpr-tostring
Java: Add toString override for SwitchExpr.
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user