Java: Add toString override for SwitchExpr.

This commit is contained in:
Anders Schack-Mulligen
2019-07-25 10:53:16 +02:00
parent a42d9b1f96
commit e8aae19556

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. */