File tree Expand file tree Collapse file tree 4 files changed +0
-28
lines changed
lib/semmle/javascript/frameworks/data/internal
test/library-tests/frameworks/data Expand file tree Collapse file tree 4 files changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -52,23 +52,6 @@ class AccessPath extends string instanceof AccessPath::Range {
52
52
AccessPathToken getLastToken ( int n ) { result = getToken ( getNumToken ( ) - 1 - n ) }
53
53
}
54
54
55
- /**
56
- * An access path that uses `A of B` syntax, which should now be written as `B.A`.
57
- *
58
- * This is a compatibility layer to help test at checkpoints during transition to the new syntax.
59
- */
60
- private class LegacyAccessPath extends AccessPath {
61
- LegacyAccessPath ( ) { this .matches ( "% of %" ) }
62
-
63
- private string getRawSplit ( int n ) { result = this .splitAt ( " of " , n ) }
64
-
65
- private int getNumRawSplits ( ) { result = strictcount ( int n | exists ( getRawSplit ( n ) ) ) }
66
-
67
- override string getRawToken ( int n ) { result = getRawSplit ( getNumRawSplits ( ) - n - 1 ) }
68
-
69
- override predicate hasSyntaxError ( ) { none ( ) }
70
- }
71
-
72
55
/**
73
56
* An access part token such as `Argument[1]` or `ReturnValue`, appearing in one or more access paths.
74
57
*/
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ taintFlow
28
28
| test.js:76:31:76:38 | source() | test.js:76:31:76:38 | source() |
29
29
| test.js:77:34:77:41 | source() | test.js:77:34:77:41 | source() |
30
30
| test.js:81:28:81:35 | source() | test.js:81:28:81:35 | source() |
31
- | test.js:87:40:87:47 | source() | test.js:87:40:87:47 | source() |
32
31
isSink
33
32
| test.js:46:18:46:25 | source() | test-sink |
34
33
| test.js:47:22:47:29 | source() | test-sink |
72
71
| test.js:78:34:78:34 | 3 | test-sink |
73
72
| test.js:81:28:81:35 | source() | test-sink |
74
73
| test.js:82:28:82:28 | 1 | test-sink |
75
- | test.js:87:40:87:47 | source() | test-sink |
76
74
syntaxErrors
77
75
| Member[foo |
78
76
| Member[foo] .Member[bar] |
Original file line number Diff line number Diff line change @@ -83,6 +83,4 @@ function testSinks() {
83
83
testlib . mySinkIfArityTwo ( source ( ) , 2 , 3 ) ; // OK
84
84
testlib . mySinkIfArityTwo ( 1 , source ( ) , 3 ) ; // OK
85
85
testlib . mySinkIfArityTwo ( 1 , 2 , source ( ) ) ; // OK
86
-
87
- testlib . one . two . three ( ) . legacySyntax ( source ( ) ) ; // NOT OK
88
86
}
Original file line number Diff line number Diff line change @@ -34,13 +34,6 @@ class Sinks extends ModelInput::SinkModelCsv {
34
34
}
35
35
}
36
36
37
- class LegacySyntaxTest extends ModelInput:: SinkModelCsv {
38
- override predicate row ( string row ) {
39
- row =
40
- "testlib;;Argument[0] of Member[legacySyntax] of ReturnValue of Member[three] of Member[two] of Member[one];test-sink"
41
- }
42
- }
43
-
44
37
class BasicTaintTracking extends TaintTracking:: Configuration {
45
38
BasicTaintTracking ( ) { this = "BasicTaintTracking" }
46
39
You can’t perform that action at this time.
0 commit comments