File tree Expand file tree Collapse file tree 3 files changed +3
-12
lines changed
csharp/ql/lib/semmle/code/csharp/dataflow/internal
java/ql/lib/semmle/code/java/dataflow/internal
ruby/ql/lib/codeql/ruby/dataflow/internal Expand file tree Collapse file tree 3 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -47,9 +47,6 @@ class AccessPath extends string instanceof AccessPath::Range {
47
47
result = count ( int n | exists ( getRawToken ( this , n ) ) ) and
48
48
not this .hasSyntaxError ( )
49
49
}
50
-
51
- /** Gets the `n`th-last token, with 0 being the last token. */
52
- AccessPathToken getLastToken ( int n ) { result = this .getToken ( this .getNumToken ( ) - 1 - n ) }
53
50
}
54
51
55
52
/**
@@ -72,7 +69,7 @@ class AccessPathToken extends string {
72
69
string getArgumentList ( ) { result = this .getPart ( 2 ) }
73
70
74
71
/** Gets the `n`th argument to this token, such as `x` or `y` from `Member[x,y]`. */
75
- string getArgument ( int n ) { result = this .getArgumentList ( ) .splitAt ( "," , n ) }
72
+ string getArgument ( int n ) { result = this .getArgumentList ( ) .splitAt ( "," , n ) . trim ( ) }
76
73
77
74
/** Gets an argument to this token, such as `x` or `y` from `Member[x,y]`. */
78
75
string getAnArgument ( ) { result = this .getArgument ( _) }
Original file line number Diff line number Diff line change @@ -47,9 +47,6 @@ class AccessPath extends string instanceof AccessPath::Range {
47
47
result = count ( int n | exists ( getRawToken ( this , n ) ) ) and
48
48
not this .hasSyntaxError ( )
49
49
}
50
-
51
- /** Gets the `n`th-last token, with 0 being the last token. */
52
- AccessPathToken getLastToken ( int n ) { result = this .getToken ( this .getNumToken ( ) - 1 - n ) }
53
50
}
54
51
55
52
/**
@@ -72,7 +69,7 @@ class AccessPathToken extends string {
72
69
string getArgumentList ( ) { result = this .getPart ( 2 ) }
73
70
74
71
/** Gets the `n`th argument to this token, such as `x` or `y` from `Member[x,y]`. */
75
- string getArgument ( int n ) { result = this .getArgumentList ( ) .splitAt ( "," , n ) }
72
+ string getArgument ( int n ) { result = this .getArgumentList ( ) .splitAt ( "," , n ) . trim ( ) }
76
73
77
74
/** Gets an argument to this token, such as `x` or `y` from `Member[x,y]`. */
78
75
string getAnArgument ( ) { result = this .getArgument ( _) }
Original file line number Diff line number Diff line change @@ -47,9 +47,6 @@ class AccessPath extends string instanceof AccessPath::Range {
47
47
result = count ( int n | exists ( getRawToken ( this , n ) ) ) and
48
48
not this .hasSyntaxError ( )
49
49
}
50
-
51
- /** Gets the `n`th-last token, with 0 being the last token. */
52
- AccessPathToken getLastToken ( int n ) { result = this .getToken ( this .getNumToken ( ) - 1 - n ) }
53
50
}
54
51
55
52
/**
@@ -72,7 +69,7 @@ class AccessPathToken extends string {
72
69
string getArgumentList ( ) { result = this .getPart ( 2 ) }
73
70
74
71
/** Gets the `n`th argument to this token, such as `x` or `y` from `Member[x,y]`. */
75
- string getArgument ( int n ) { result = this .getArgumentList ( ) .splitAt ( "," , n ) }
72
+ string getArgument ( int n ) { result = this .getArgumentList ( ) .splitAt ( "," , n ) . trim ( ) }
76
73
77
74
/** Gets an argument to this token, such as `x` or `y` from `Member[x,y]`. */
78
75
string getAnArgument ( ) { result = this .getArgument ( _) }
You can’t perform that action at this time.
0 commit comments