@@ -28,12 +28,12 @@ class AstNode extends @node, Locatable {
2828 /**
2929 * Gets a child node of this node.
3030 */
31- AstNode getAChild ( ) { result = getChild ( _) }
31+ AstNode getAChild ( ) { result = this . getChild ( _) }
3232
3333 /**
3434 * Gets the number of child nodes of this node.
3535 */
36- int getNumChild ( ) { result = count ( getAChild ( ) ) }
36+ int getNumChild ( ) { result = count ( this . getAChild ( ) ) }
3737
3838 /**
3939 * Gets a child with the given index and of the given kind, if one exists.
@@ -63,7 +63,7 @@ class AstNode extends @node, Locatable {
6363 AstNode getUniquelyNumberedChild ( int index ) {
6464 result =
6565 rank [ index + 1 ] ( AstNode child , string kind , int i |
66- child = getChildOfKind ( kind , i )
66+ child = this . getChildOfKind ( kind , i )
6767 |
6868 child order by kind , i
6969 )
@@ -74,17 +74,17 @@ class AstNode extends @node, Locatable {
7474
7575 /** Gets the parent node of this AST node, but without crossing function boundaries. */
7676 private AstNode parentInSameFunction ( ) {
77- result = getParent ( ) and
77+ result = this . getParent ( ) and
7878 not this instanceof FuncDef
7979 }
8080
8181 /** Gets the innermost function definition to which this AST node belongs, if any. */
82- FuncDef getEnclosingFunction ( ) { result = getParent ( ) .parentInSameFunction * ( ) }
82+ FuncDef getEnclosingFunction ( ) { result = this . getParent ( ) .parentInSameFunction * ( ) }
8383
8484 /**
8585 * Gets a comma-separated list of the names of the primary CodeQL classes to which this element belongs.
8686 */
87- final string getPrimaryQlClasses ( ) { result = concat ( getAPrimaryQlClass ( ) , "," ) }
87+ final string getPrimaryQlClasses ( ) { result = concat ( this . getAPrimaryQlClass ( ) , "," ) }
8888
8989 /**
9090 * Gets the name of a primary CodeQL class to which this node belongs.
@@ -116,12 +116,12 @@ class ExprParent extends @exprparent, AstNode {
116116 /**
117117 * Gets an expression that is a child node of this node in the AST.
118118 */
119- Expr getAChildExpr ( ) { result = getChildExpr ( _) }
119+ Expr getAChildExpr ( ) { result = this . getChildExpr ( _) }
120120
121121 /**
122122 * Gets the number of child expressions of this node.
123123 */
124- int getNumChildExpr ( ) { result = count ( getAChildExpr ( ) ) }
124+ int getNumChildExpr ( ) { result = count ( this . getAChildExpr ( ) ) }
125125}
126126
127127/**
@@ -139,12 +139,12 @@ class GoModExprParent extends @modexprparent, AstNode {
139139 /**
140140 * Gets an expression that is a child node of this node in the AST.
141141 */
142- GoModExpr getAChildGoModExpr ( ) { result = getChildGoModExpr ( _) }
142+ GoModExpr getAChildGoModExpr ( ) { result = this . getChildGoModExpr ( _) }
143143
144144 /**
145145 * Gets the number of child expressions of this node.
146146 */
147- int getNumChildGoModExpr ( ) { result = count ( getAChildGoModExpr ( ) ) }
147+ int getNumChildGoModExpr ( ) { result = count ( this . getAChildGoModExpr ( ) ) }
148148}
149149
150150/**
@@ -162,12 +162,12 @@ class StmtParent extends @stmtparent, AstNode {
162162 /**
163163 * Gets a statement that is a child node of this node in the AST.
164164 */
165- Stmt getAChildStmt ( ) { result = getChildStmt ( _) }
165+ Stmt getAChildStmt ( ) { result = this . getChildStmt ( _) }
166166
167167 /**
168168 * Gets the number of child statements of this node.
169169 */
170- int getNumChildStmt ( ) { result = count ( getAChildStmt ( ) ) }
170+ int getNumChildStmt ( ) { result = count ( this . getAChildStmt ( ) ) }
171171}
172172
173173/**
@@ -185,12 +185,12 @@ class DeclParent extends @declparent, AstNode {
185185 /**
186186 * Gets a child declaration of this node in the AST.
187187 */
188- Decl getADecl ( ) { result = getDecl ( _) }
188+ Decl getADecl ( ) { result = this . getDecl ( _) }
189189
190190 /**
191191 * Gets the number of child declarations of this node.
192192 */
193- int getNumDecl ( ) { result = count ( getADecl ( ) ) }
193+ int getNumDecl ( ) { result = count ( this . getADecl ( ) ) }
194194}
195195
196196/**
@@ -208,12 +208,12 @@ class FieldParent extends @fieldparent, AstNode {
208208 /**
209209 * Gets a child field of this node in the AST.
210210 */
211- FieldBase getAField ( ) { result = getField ( _) }
211+ FieldBase getAField ( ) { result = this . getField ( _) }
212212
213213 /**
214214 * Gets the number of child fields of this node.
215215 */
216- int getNumFields ( ) { result = count ( getAField ( ) ) }
216+ int getNumFields ( ) { result = count ( this . getAField ( ) ) }
217217}
218218
219219/**
0 commit comments