@@ -204,7 +204,7 @@ class SuperNode extends LocalFlow::TSuperNode {
204
204
Node getANode ( ) { LocalFlow:: getRepr ( result ) = repr }
205
205
206
206
/** Gets an AST node from any of the nodes in this super node. */
207
- AstNode asAstNode ( ) { result = getANode ( ) .asAstNode ( ) }
207
+ AstNode asAstNode ( ) { result = this . getANode ( ) .asAstNode ( ) }
208
208
209
209
/**
210
210
* Gets a single node from this super node.
@@ -214,23 +214,25 @@ class SuperNode extends LocalFlow::TSuperNode {
214
214
* - An `AstNodeNode` is preferred over other nodes.
215
215
* - A node occurring earlier is preferred over one occurring later.
216
216
*/
217
- Node getArbitraryRepr ( ) { result = min ( Node n | n = getANode ( ) | n order by getInternalId ( n ) ) }
217
+ Node getArbitraryRepr ( ) {
218
+ result = min ( Node n | n = this .getANode ( ) | n order by getInternalId ( n ) )
219
+ }
218
220
219
221
/**
220
222
* Gets the predicate containing all nodes that are part of this super node.
221
223
*/
222
- Predicate getEnclosingPredicate ( ) { result = getANode ( ) .getEnclosingPredicate ( ) }
224
+ Predicate getEnclosingPredicate ( ) { result = this . getANode ( ) .getEnclosingPredicate ( ) }
223
225
224
226
/** Gets a string representation of this super node. */
225
227
string toString ( ) {
226
228
exists ( int c |
227
- c = strictcount ( getANode ( ) ) and
228
- result = "Super node of " + c + " nodes in " + getEnclosingPredicate ( ) .getName ( )
229
+ c = strictcount ( this . getANode ( ) ) and
230
+ result = "Super node of " + c + " nodes in " + this . getEnclosingPredicate ( ) .getName ( )
229
231
)
230
232
}
231
233
232
234
/** Gets the location of an arbitrary node in this super node. */
233
- Location getLocation ( ) { result = getArbitraryRepr ( ) .getLocation ( ) }
235
+ Location getLocation ( ) { result = this . getArbitraryRepr ( ) .getLocation ( ) }
234
236
235
237
/** Gets any member call whose receiver is in the same super node. */
236
238
MemberCall getALocalMemberCall ( ) { superNode ( result .getBase ( ) ) = this }
@@ -287,7 +289,7 @@ class SuperNode extends LocalFlow::TSuperNode {
287
289
cached
288
290
private string getAStringValue ( Tracker t ) {
289
291
t .start ( ) and
290
- result = asAstNode ( ) .( String ) .getValue ( )
292
+ result = this . asAstNode ( ) .( String ) .getValue ( )
291
293
or
292
294
exists ( SuperNode pred , Tracker t2 |
293
295
this = pred .track ( t2 , t ) and
0 commit comments