File tree Expand file tree Collapse file tree 6 files changed +11
-12
lines changed Expand file tree Collapse file tree 6 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,16 @@ class MethodCall extends Call instanceof MethodCallImpl {
116
116
}
117
117
}
118
118
119
+ /**
120
+ * A `Method` call that has no known target.
121
+ * These will typically be calls to methods inherited from a superclass.
122
+ * TODO: When API Graphs is able to resolve calls to methods like `Kernel.send`
123
+ * this class is no longer necessary and should be removed.
124
+ */
125
+ class UnknownMethodCall extends MethodCall {
126
+ UnknownMethodCall ( ) { not exists ( this .( Call ) .getATarget ( ) ) }
127
+ }
128
+
119
129
/**
120
130
* A call to a setter method.
121
131
* ```rb
Original file line number Diff line number Diff line change @@ -8,14 +8,6 @@ import core.Module
8
8
import core.Array
9
9
import core.Regexp
10
10
11
- /**
12
- * A `Method` call that has no known target.
13
- * These will typically be calls to methods inherited from a superclass.
14
- */
15
- class UnknownMethodCall extends MethodCall {
16
- UnknownMethodCall ( ) { not exists ( this .( Call ) .getATarget ( ) ) }
17
- }
18
-
19
11
/**
20
12
* A system command executed via subshell literal syntax.
21
13
* E.g.
Original file line number Diff line number Diff line change 1
1
private import codeql.ruby.AST
2
2
private import codeql.ruby.Concepts
3
3
private import codeql.ruby.DataFlow
4
- private import codeql.ruby.frameworks.Core
5
4
6
5
module BasicObject {
7
6
/**
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ private import codeql.ruby.Concepts
5
5
private import codeql.ruby.DataFlow
6
6
private import codeql.ruby.dataflow.FlowSummary
7
7
private import codeql.ruby.dataflow.internal.DataFlowDispatch
8
- private import codeql.ruby.frameworks.Core
9
8
10
9
/** Modeling for the `Kernel` class. */
11
10
module Kernel {
Original file line number Diff line number Diff line change 1
1
private import codeql.ruby.AST
2
2
private import codeql.ruby.Concepts
3
3
private import codeql.ruby.DataFlow
4
- private import codeql.ruby.frameworks.Core
5
4
6
5
module Module {
7
6
/**
Original file line number Diff line number Diff line change 1
- private import codeql.ruby.frameworks.Core
1
+ private import codeql.ruby.AST
2
2
3
3
module Object {
4
4
/**
You can’t perform that action at this time.
0 commit comments