File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
python/ql/lib/semmle/python Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -389,6 +389,26 @@ class Eq_ extends @py_Eq, Cmpop {
389
389
override string toString ( ) { result = "Eq" }
390
390
}
391
391
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
+
392
412
/** INTERNAL: See the class `ExceptStmt` for further information. */
393
413
class ExceptStmt_ extends @py_ExceptStmt, Stmt {
394
414
/** Gets the type of this except block. */
You can’t perform that action at this time.
0 commit comments