@@ -278,10 +278,10 @@ class AccessPath extends string {
278
278
}
279
279
280
280
/** Gets the `n`th token on the access path. */
281
- AccessPathToken getToken ( int n ) { result = getRawToken ( n ) }
281
+ AccessPathToken getToken ( int n ) { result = this . getRawToken ( n ) }
282
282
283
283
/** Gets the number of tokens on the path. */
284
- int getNumToken ( ) { result = count ( int n | exists ( getRawToken ( n ) ) ) }
284
+ int getNumToken ( ) { result = count ( int n | exists ( this . getRawToken ( n ) ) ) }
285
285
}
286
286
287
287
/**
@@ -437,25 +437,27 @@ private API::Node getNodeFromInputOutputPath(API::InvokeNode baseNode, AccessPat
437
437
class AccessPathToken extends string {
438
438
AccessPathToken ( ) { this = any ( AccessPath path ) .getRawToken ( _) }
439
439
440
- private string getPart ( int part ) { result = this .regexpCapture ( "([^\\[]+)(?:\\[([^\\]]*)\\])?" , part ) }
440
+ private string getPart ( int part ) {
441
+ result = this .regexpCapture ( "([^\\[]+)(?:\\[([^\\]]*)\\])?" , part )
442
+ }
441
443
442
444
/** Gets the name of the token, such as `Member` from `Member[x]` */
443
- string getName ( ) { result = getPart ( 1 ) }
445
+ string getName ( ) { result = this . getPart ( 1 ) }
444
446
445
447
/**
446
448
* Gets the argument list, such as `1,2` from `Member[1,2]`,
447
449
* or has no result if there are no arguments.
448
450
*/
449
- string getArgumentList ( ) { result = getPart ( 2 ) }
451
+ string getArgumentList ( ) { result = this . getPart ( 2 ) }
450
452
451
453
/** Gets the `n`th argument to this token, such as `x` or `y` from `Member[x,y]`. */
452
- string getArgument ( int n ) { result = getArgumentList ( ) .splitAt ( "," , n ) }
454
+ string getArgument ( int n ) { result = this . getArgumentList ( ) .splitAt ( "," , n ) }
453
455
454
456
/** Gets an argument to this token, such as `x` or `y` from `Member[x,y]`. */
455
- string getAnArgument ( ) { result = getArgument ( _) }
457
+ string getAnArgument ( ) { result = this . getArgument ( _) }
456
458
457
459
/** Gets the number of arguments to this token, such as 2 for `Member[x,y]` or zero for `ReturnValue`. */
458
- int getNumArgument ( ) { result = count ( int n | exists ( getArgument ( n ) ) ) }
460
+ int getNumArgument ( ) { result = count ( int n | exists ( this . getArgument ( n ) ) ) }
459
461
}
460
462
461
463
/**
0 commit comments