File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
lib/codeql/ruby/dataflow/internal
test/library-tests/modules Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ private module Cached {
236
236
// for `self`. At that point, the `self`s returned by `trackInstance`
237
237
// in `DataFlowDispatch.qll` should refer to the post-update node,
238
238
// and we can remove this case.
239
- n instanceof SelfArgumentNode
239
+ n . asExpr ( ) . getExpr ( ) instanceof Self
240
240
or
241
241
not localFlowStepTypeTracker + ( any ( Node e |
242
242
e instanceof ExprNode
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ getTarget
2
2
| calls.rb:2:5:2:14 | call to puts | calls.rb:87:5:87:17 | puts |
3
3
| calls.rb:5:1:5:3 | call to foo | calls.rb:1:1:3:3 | foo |
4
4
| calls.rb:5:1:5:3 | call to foo | calls.rb:71:1:75:3 | foo |
5
+ | calls.rb:8:5:8:14 | call to puts | calls.rb:87:5:87:17 | puts |
6
+ | calls.rb:11:1:11:8 | call to bar | calls.rb:7:1:9:3 | bar |
5
7
| calls.rb:13:1:13:8 | call to foo | calls.rb:1:1:3:3 | foo |
6
8
| calls.rb:13:1:13:8 | call to foo | calls.rb:71:1:75:3 | foo |
7
9
| calls.rb:22:5:22:15 | call to singleton_m | calls.rb:17:5:17:29 | singleton_m |
@@ -84,8 +86,6 @@ getTarget
84
86
| private.rb:28:1:28:12 | call to public | private.rb:5:3:6:5 | public |
85
87
| private.rb:30:1:30:15 | call to private_on_main | private.rb:21:1:22:3 | private_on_main |
86
88
unresolvedCall
87
- | calls.rb:8:5:8:14 | call to puts |
88
- | calls.rb:11:1:11:8 | call to bar |
89
89
| calls.rb:19:5:19:14 | call to instance_m |
90
90
| calls.rb:20:5:20:19 | call to instance_m |
91
91
| calls.rb:26:1:26:12 | call to instance_m |
You can’t perform that action at this time.
0 commit comments