Skip to content

Commit d827417

Browse files
committed
unified: Regenerate QL
1 parent 1646684 commit d827417

2 files changed

Lines changed: 1 addition & 23 deletions

File tree

unified/ql/lib/codeql/unified/Ast.qll

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,6 @@ module Unified {
349349
/** Gets the node corresponding to the field `body`. */
350350
final Block getBody() { unified_catch_clause_def(this, result) }
351351

352-
/** Gets the node corresponding to the field `guard`. */
353-
final Expr getGuard() { unified_catch_clause_guard(this, result) }
354-
355352
/** Gets the node corresponding to the field `modifier`. */
356353
final Modifier getModifier(int i) { unified_catch_clause_modifier(this, i, result) }
357354

@@ -361,7 +358,6 @@ module Unified {
361358
/** Gets a field or child node of this node. */
362359
final override AstNode getAFieldOrChild() {
363360
unified_catch_clause_def(this, result) or
364-
unified_catch_clause_guard(this, result) or
365361
unified_catch_clause_modifier(this, _, result) or
366362
unified_catch_clause_pattern(this, result)
367363
}
@@ -1147,9 +1143,6 @@ module Unified {
11471143
/** Gets the node corresponding to the field `body`. */
11481144
final Block getBody() { unified_switch_case_def(this, result) }
11491145

1150-
/** Gets the node corresponding to the field `guard`. */
1151-
final Expr getGuard() { unified_switch_case_guard(this, result) }
1152-
11531146
/** Gets the node corresponding to the field `modifier`. */
11541147
final Modifier getModifier(int i) { unified_switch_case_modifier(this, i, result) }
11551148

@@ -1159,7 +1152,6 @@ module Unified {
11591152
/** Gets a field or child node of this node. */
11601153
final override AstNode getAFieldOrChild() {
11611154
unified_switch_case_def(this, result) or
1162-
unified_switch_case_guard(this, result) or
11631155
unified_switch_case_modifier(this, _, result) or
11641156
unified_switch_case_pattern(this, result)
11651157
}
@@ -1563,8 +1555,6 @@ module Unified {
15631555
or
15641556
result = node.(CatchClause).getBody() and i = -1 and name = "getBody"
15651557
or
1566-
result = node.(CatchClause).getGuard() and i = -1 and name = "getGuard"
1567-
or
15681558
result = node.(CatchClause).getModifier(i) and name = "getModifier"
15691559
or
15701560
result = node.(CatchClause).getPattern() and i = -1 and name = "getPattern"
@@ -1749,8 +1739,6 @@ module Unified {
17491739
or
17501740
result = node.(SwitchCase).getBody() and i = -1 and name = "getBody"
17511741
or
1752-
result = node.(SwitchCase).getGuard() and i = -1 and name = "getGuard"
1753-
or
17541742
result = node.(SwitchCase).getModifier(i) and name = "getModifier"
17551743
or
17561744
result = node.(SwitchCase).getPattern() and i = -1 and name = "getPattern"

unified/ql/lib/unified.dbscheme

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -292,11 +292,6 @@ unified_call_expr_def(
292292
int callee: @unified_expr_or_type ref
293293
);
294294

295-
unified_catch_clause_guard(
296-
unique int unified_catch_clause: @unified_catch_clause ref,
297-
unique int guard: @unified_expr ref
298-
);
299-
300295
#keyset[unified_catch_clause, index]
301296
unified_catch_clause_modifier(
302297
int unified_catch_clause: @unified_catch_clause ref,
@@ -780,7 +775,7 @@ unified_parameter_def(
780775
unique int id: @unified_parameter
781776
);
782777

783-
@unified_pattern = @unified_bulk_importing_pattern | @unified_constructor_pattern | @unified_expr_equality_pattern | @unified_name_pattern | @unified_or_pattern | @unified_token_ignore_pattern | @unified_token_unsupported_node | @unified_tuple_pattern
778+
@unified_pattern = @unified_bulk_importing_pattern | @unified_conditional_pattern | @unified_constructor_pattern | @unified_expr_equality_pattern | @unified_name_pattern | @unified_or_pattern | @unified_token_ignore_pattern | @unified_token_unsupported_node | @unified_tuple_pattern
784779

785780
unified_pattern_element_key(
786781
unique int unified_pattern_element: @unified_pattern_element ref,
@@ -816,11 +811,6 @@ unified_return_expr_def(
816811

817812
@unified_stmt = @unified_accessor_declaration | @unified_class_like_declaration | @unified_constructor_declaration | @unified_destructor_declaration | @unified_do_while_stmt | @unified_expr | @unified_for_each_stmt | @unified_function_declaration | @unified_guard_if_stmt | @unified_import_declaration | @unified_labeled_stmt | @unified_operator_syntax_declaration | @unified_type_alias_declaration | @unified_variable_declaration | @unified_while_stmt
818813

819-
unified_switch_case_guard(
820-
unique int unified_switch_case: @unified_switch_case ref,
821-
unique int guard: @unified_expr ref
822-
);
823-
824814
#keyset[unified_switch_case, index]
825815
unified_switch_case_modifier(
826816
int unified_switch_case: @unified_switch_case ref,

0 commit comments

Comments
 (0)