Skip to content

Commit 856e48c

Browse files
committed
python: new dbscheme
1 parent 90382c4 commit 856e48c

File tree

1 file changed

+27
-21
lines changed

1 file changed

+27
-21
lines changed

python/ql/lib/semmlecode.python.dbscheme

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,11 @@ py_extracted_version(int module : @py_Module ref,
273273
/* <Field> Ellipsis.location = 0, location */
274274
/* <Field> Ellipsis.parenthesised = 1, bool */
275275

276+
/* <Field> ExceptGroupStmt.location = 0, location */
277+
/* <Field> ExceptGroupStmt.type = 1, expr */
278+
/* <Field> ExceptGroupStmt.name = 2, expr */
279+
/* <Field> ExceptGroupStmt.body = 3, stmt_list */
280+
276281
/* <Field> ExceptStmt.location = 0, location */
277282
/* <Field> ExceptStmt.type = 1, expr */
278283
/* <Field> ExceptStmt.name = 2, expr */
@@ -863,25 +868,26 @@ case @py_stmt.kind of
863868
| 4 = @py_Continue
864869
| 5 = @py_Delete
865870
| 6 = @py_ExceptStmt
866-
| 7 = @py_Exec
867-
| 8 = @py_Expr_stmt
868-
| 9 = @py_For
869-
| 10 = @py_Global
870-
| 11 = @py_If
871-
| 12 = @py_Import
872-
| 13 = @py_ImportStar
873-
| 14 = @py_MatchStmt
874-
| 15 = @py_Case
875-
| 16 = @py_Nonlocal
876-
| 17 = @py_Pass
877-
| 18 = @py_Print
878-
| 19 = @py_Raise
879-
| 20 = @py_Return
880-
| 21 = @py_Try
881-
| 22 = @py_While
882-
| 23 = @py_With
883-
| 24 = @py_TemplateWrite
884-
| 25 = @py_AnnAssign;
871+
| 7 = @py_ExceptGroupStmt
872+
| 8 = @py_Exec
873+
| 9 = @py_Expr_stmt
874+
| 10 = @py_For
875+
| 11 = @py_Global
876+
| 12 = @py_If
877+
| 13 = @py_Import
878+
| 14 = @py_ImportStar
879+
| 15 = @py_MatchStmt
880+
| 16 = @py_Case
881+
| 17 = @py_Nonlocal
882+
| 18 = @py_Pass
883+
| 19 = @py_Print
884+
| 20 = @py_Raise
885+
| 21 = @py_Return
886+
| 22 = @py_Try
887+
| 23 = @py_While
888+
| 24 = @py_With
889+
| 25 = @py_TemplateWrite
890+
| 26 = @py_AnnAssign;
885891

886892
case @py_unaryop.kind of
887893
0 = @py_Invert
@@ -907,7 +913,7 @@ case @py_unaryop.kind of
907913

908914
@py_expr_or_stmt = @py_expr | @py_stmt;
909915

910-
@py_expr_parent = @py_AnnAssign | @py_Assert | @py_Assign | @py_AssignExpr | @py_Attribute | @py_AugAssign | @py_Await | @py_BinaryExpr | @py_Call | @py_Case | @py_Compare | @py_DictComp | @py_DictUnpacking | @py_ExceptStmt | @py_Exec | @py_Expr_stmt | @py_Filter | @py_For | @py_FormattedValue | @py_Function | @py_FunctionExpr | @py_GeneratorExp | @py_Guard | @py_If | @py_IfExp | @py_ImportMember | @py_ImportStar | @py_KeyValuePair | @py_ListComp | @py_MatchAsPattern | @py_MatchCapturePattern | @py_MatchClassPattern | @py_MatchKeywordPattern | @py_MatchLiteralPattern | @py_MatchStmt | @py_MatchValuePattern | @py_Print | @py_Raise | @py_Repr | @py_Return | @py_SetComp | @py_Slice | @py_Starred | @py_Subscript | @py_TemplateDottedNotation | @py_TemplateWrite | @py_UnaryExpr | @py_While | @py_With | @py_Yield | @py_YieldFrom | @py_alias | @py_arguments | @py_comprehension | @py_expr_list | @py_keyword | @py_parameter_list;
916+
@py_expr_parent = @py_AnnAssign | @py_Assert | @py_Assign | @py_AssignExpr | @py_Attribute | @py_AugAssign | @py_Await | @py_BinaryExpr | @py_Call | @py_Case | @py_Compare | @py_DictComp | @py_DictUnpacking | @py_ExceptGroupStmt | @py_ExceptStmt | @py_Exec | @py_Expr_stmt | @py_Filter | @py_For | @py_FormattedValue | @py_Function | @py_FunctionExpr | @py_GeneratorExp | @py_Guard | @py_If | @py_IfExp | @py_ImportMember | @py_ImportStar | @py_KeyValuePair | @py_ListComp | @py_MatchAsPattern | @py_MatchCapturePattern | @py_MatchClassPattern | @py_MatchKeywordPattern | @py_MatchLiteralPattern | @py_MatchStmt | @py_MatchValuePattern | @py_Print | @py_Raise | @py_Repr | @py_Return | @py_SetComp | @py_Slice | @py_Starred | @py_Subscript | @py_TemplateDottedNotation | @py_TemplateWrite | @py_UnaryExpr | @py_While | @py_With | @py_Yield | @py_YieldFrom | @py_alias | @py_arguments | @py_comprehension | @py_expr_list | @py_keyword | @py_parameter_list;
911917

912918
@py_location_parent = @py_DictUnpacking | @py_KeyValuePair | @py_StringPart | @py_comprehension | @py_expr | @py_keyword | @py_pattern | @py_stmt;
913919

@@ -919,7 +925,7 @@ case @py_unaryop.kind of
919925

920926
@py_scope = @py_Class | @py_Function | @py_Module;
921927

922-
@py_stmt_list_parent = @py_Case | @py_Class | @py_ExceptStmt | @py_For | @py_Function | @py_If | @py_MatchStmt | @py_Module | @py_Try | @py_While | @py_With;
928+
@py_stmt_list_parent = @py_Case | @py_Class | @py_ExceptGroupStmt | @py_ExceptStmt | @py_For | @py_Function | @py_If | @py_MatchStmt | @py_Module | @py_Try | @py_While | @py_With;
923929

924930
@py_str_list_parent = @py_Global | @py_Nonlocal;
925931

0 commit comments

Comments
 (0)