Skip to content

Commit a96622e

Browse files
committed
Unified: Regenerate Ast.qll
1 parent da77b35 commit a96622e

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

  • unified/ql/lib/codeql/unified/internal

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

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ module Unified {
104104
final F::AccessorKind getAccessorKind() { unified_accessor_declaration_def(this, result, _) }
105105

106106
/** Gets the node corresponding to the field `body`. */
107-
final F::Block getBody() { unified_accessor_declaration_body(this, result) }
107+
final override F::Block getBody() { unified_accessor_declaration_body(this, result) }
108108

109109
/** Gets the node corresponding to the field `modifier`. */
110110
final F::Modifier getModifier(int i) { unified_accessor_declaration_modifier(this, i, result) }
@@ -373,7 +373,10 @@ module Unified {
373373
}
374374
}
375375

376-
class Callable extends @unified_callable, F::AstNode { }
376+
class Callable extends @unified_callable, F::AstNode {
377+
/** Gets the node corresponding to the field `body`. */
378+
abstract F::Block getBody();
379+
}
377380

378381
/** A class representing `catch_clause` nodes. */
379382
class CatchClause extends @unified_catch_clause, F::AstNode {
@@ -512,7 +515,7 @@ module Unified {
512515
final override string getAPrimaryQlClass() { result = "ConstructorDeclaration" }
513516

514517
/** Gets the node corresponding to the field `body`. */
515-
final F::Block getBody() { unified_constructor_declaration_def(this, result) }
518+
final override F::Block getBody() { unified_constructor_declaration_def(this, result) }
516519

517520
/** Gets the node corresponding to the field `modifier`. */
518521
final F::Modifier getModifier(int i) {
@@ -592,7 +595,7 @@ module Unified {
592595
final override string getAPrimaryQlClass() { result = "DestructorDeclaration" }
593596

594597
/** Gets the node corresponding to the field `body`. */
595-
final F::Block getBody() { unified_destructor_declaration_def(this, result) }
598+
final override F::Block getBody() { unified_destructor_declaration_def(this, result) }
596599

597600
/** Gets the node corresponding to the field `modifier`. */
598601
final F::Modifier getModifier(int i) {
@@ -727,7 +730,7 @@ module Unified {
727730
final override string getAPrimaryQlClass() { result = "FunctionDeclaration" }
728731

729732
/** Gets the node corresponding to the field `body`. */
730-
final F::Block getBody() { unified_function_declaration_body(this, result) }
733+
final override F::Block getBody() { unified_function_declaration_body(this, result) }
731734

732735
/** Gets the node corresponding to the field `modifier`. */
733736
final F::Modifier getModifier(int i) { unified_function_declaration_modifier(this, i, result) }
@@ -783,7 +786,7 @@ module Unified {
783786
final override string getAPrimaryQlClass() { result = "FunctionExpr" }
784787

785788
/** Gets the node corresponding to the field `body`. */
786-
final F::Block getBody() { unified_function_expr_def(this, result) }
789+
final override F::Block getBody() { unified_function_expr_def(this, result) }
787790

788791
/** Gets the node corresponding to the field `capture_declaration`. */
789792
final F::VariableDeclaration getCaptureDeclaration(int i) {
@@ -958,7 +961,7 @@ module Unified {
958961
final override string getAPrimaryQlClass() { result = "InitializerDeclaration" }
959962

960963
/** Gets the node corresponding to the field `body`. */
961-
final F::Block getBody() { unified_initializer_declaration_def(this, result) }
964+
final override F::Block getBody() { unified_initializer_declaration_def(this, result) }
962965

963966
/** Gets the node corresponding to the field `modifier`. */
964967
final F::Modifier getModifier(int i) {
@@ -1359,7 +1362,7 @@ module Unified {
13591362
final override string getAPrimaryQlClass() { result = "TopLevel" }
13601363

13611364
/** Gets the node corresponding to the field `body`. */
1362-
final F::Block getBody() { unified_top_level_def(this, result) }
1365+
final override F::Block getBody() { unified_top_level_def(this, result) }
13631366

13641367
/** Gets a field or child node of this node. */
13651368
final override F::AstNode getAFieldOrChild() { unified_top_level_def(this, result) }

0 commit comments

Comments
 (0)