There was an error while loading. Please reload this page.
1 parent 18ecee9 commit 0a930eeCopy full SHA for 0a930ee
1 file changed
go/ql/lib/semmle/go/Stmt.qll
@@ -917,6 +917,7 @@ class ExpressionSwitchStmt extends @exprswitchstmt, SwitchStmt {
917
* ```
918
*/
919
class TypeSwitchStmt extends @typeswitchstmt, SwitchStmt {
920
+ /** Gets the assignment statement of this type-switch statement, if any. */
921
SimpleAssignStmt getAssign() { result = this.getChildStmt(1) }
922
923
/** Gets the test statement of this type-switch statement. This is a `SimpleAssignStmt` or `ExprStmt`. */
0 commit comments