File tree Expand file tree Collapse file tree
python/ql/lib/semmle/python Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -389,6 +389,26 @@ class Eq_ extends @py_Eq, Cmpop {
389389 override string toString ( ) { result = "Eq" }
390390}
391391
392+ /** INTERNAL: See the class `ExceptGroupStmt` for further information. */
393+ class ExceptGroupStmt_ extends @py_ExceptGroupStmt, Stmt {
394+ /** Gets the type of this except group block. */
395+ Expr getType ( ) { py_exprs ( result , _, this , 1 ) }
396+
397+ /** Gets the name of this except group block. */
398+ Expr getName ( ) { py_exprs ( result , _, this , 2 ) }
399+
400+ /** Gets the body of this except group block. */
401+ StmtList getBody ( ) { py_stmt_lists ( result , this , 3 ) }
402+
403+ /** Gets the nth statement of this except group block. */
404+ Stmt getStmt ( int index ) { result = this .getBody ( ) .getItem ( index ) }
405+
406+ /** Gets a statement of this except group block. */
407+ Stmt getAStmt ( ) { result = this .getBody ( ) .getAnItem ( ) }
408+
409+ override string toString ( ) { result = "ExceptGroupStmt" }
410+ }
411+
392412/** INTERNAL: See the class `ExceptStmt` for further information. */
393413class ExceptStmt_ extends @py_ExceptStmt, Stmt {
394414 /** Gets the type of this except block. */
You can’t perform that action at this time.
0 commit comments