File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
ruby/ql/lib/codeql/ruby/dataflow/internal Expand file tree Collapse file tree 1 file changed +0
-17
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
*/
You can’t perform that action at this time.
0 commit comments