File tree Expand file tree Collapse file tree
lib/semmle/javascript/frameworks/data/internal
test/library-tests/frameworks/data Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,23 +52,6 @@ class AccessPath extends string instanceof AccessPath::Range {
5252 AccessPathToken getLastToken ( int n ) { result = getToken ( getNumToken ( ) - 1 - n ) }
5353}
5454
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-
7255/**
7356 * An access part token such as `Argument[1]` or `ReturnValue`, appearing in one or more access paths.
7457 */
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ taintFlow
2828| test.js:76:31:76:38 | source() | test.js:76:31:76:38 | source() |
2929| test.js:77:34:77:41 | source() | test.js:77:34:77:41 | source() |
3030| 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() |
3231isSink
3332| test.js:46:18:46:25 | source() | test-sink |
3433| test.js:47:22:47:29 | source() | test-sink |
7271| test.js:78:34:78:34 | 3 | test-sink |
7372| test.js:81:28:81:35 | source() | test-sink |
7473| test.js:82:28:82:28 | 1 | test-sink |
75- | test.js:87:40:87:47 | source() | test-sink |
7674syntaxErrors
7775| Member[foo |
7876| Member[foo] .Member[bar] |
Original file line number Diff line number Diff line change @@ -83,6 +83,4 @@ function testSinks() {
8383 testlib . mySinkIfArityTwo ( source ( ) , 2 , 3 ) ; // OK
8484 testlib . mySinkIfArityTwo ( 1 , source ( ) , 3 ) ; // OK
8585 testlib . mySinkIfArityTwo ( 1 , 2 , source ( ) ) ; // OK
86-
87- testlib . one . two . three ( ) . legacySyntax ( source ( ) ) ; // NOT OK
8886}
Original file line number Diff line number Diff line change @@ -34,13 +34,6 @@ class Sinks extends ModelInput::SinkModelCsv {
3434 }
3535}
3636
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-
4437class BasicTaintTracking extends TaintTracking:: Configuration {
4538 BasicTaintTracking ( ) { this = "BasicTaintTracking" }
4639
You can’t perform that action at this time.
0 commit comments