File tree 2 files changed +5
-9
lines changed
src/codeql_ruby/ast/internal
test/library-tests/ast/calls
2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -44,25 +44,21 @@ module Lambda {
44
44
}
45
45
46
46
module Block {
47
- abstract class Range extends Callable:: Range {
48
- Generated:: BlockParameters params ;
49
-
50
- final override Parameter getParameter ( int n ) { result = params .getChild ( n ) }
51
- }
47
+ abstract class Range extends Callable:: Range { }
52
48
}
53
49
54
50
module DoBlock {
55
51
class Range extends Block:: Range , @do_block {
56
52
final override Generated:: DoBlock generated ;
57
53
58
- Range ( ) { params = generated .getParameters ( ) }
54
+ final override Parameter getParameter ( int n ) { result = generated .getParameters ( ) . getChild ( n ) }
59
55
}
60
56
}
61
57
62
58
module BraceBlock {
63
59
class Range extends Block:: Range , @block {
64
60
final override Generated:: Block generated ;
65
61
66
- Range ( ) { params = generated .getParameters ( ) }
62
+ final override Parameter getParameter ( int n ) { result = generated .getParameters ( ) . getChild ( n ) }
67
63
}
68
64
}
Original file line number Diff line number Diff line change @@ -16,9 +16,7 @@ callsWithNoReceiverArgumentsOrBlock
16
16
| calls.rb:74:1:74:3 | call to foo | foo |
17
17
| calls.rb:74:7:74:9 | call to bar | bar |
18
18
| calls.rb:77:2:77:4 | call to foo | foo |
19
- | calls.rb:80:1:80:13 | call to foo | foo |
20
19
| calls.rb:80:9:80:11 | call to bar | bar |
21
- | calls.rb:83:1:83:16 | call to foo | foo |
22
20
| calls.rb:83:10:83:12 | call to bar | bar |
23
21
| calls.rb:86:1:86:3 | call to foo | foo |
24
22
| calls.rb:90:6:90:8 | call to foo | foo |
@@ -96,6 +94,8 @@ callsWithBlock
96
94
| calls.rb:14:1:14:17 | call to foo | calls.rb:14:5:14:17 | { ... } |
97
95
| calls.rb:17:1:19:3 | call to foo | calls.rb:17:5:19:3 | do ... end |
98
96
| calls.rb:22:1:24:3 | call to bar | calls.rb:22:16:24:3 | do ... end |
97
+ | calls.rb:80:1:80:13 | call to foo | calls.rb:80:7:80:13 | { ... } |
98
+ | calls.rb:83:1:83:16 | call to foo | calls.rb:83:7:83:16 | do ... end |
99
99
yieldCalls
100
100
| calls.rb:28:3:28:7 | call to yield |
101
101
| calls.rb:33:3:33:16 | call to yield |
You can’t perform that action at this time.
0 commit comments