Skip to content

Commit f6d99dc

Browse files
alexrfordhvitved
authored andcommitted
Define getBlockImpl for synthesized method calls
1 parent a743067 commit f6d99dc

File tree

1 file changed

+1
-1
lines changed
  • ruby/ql/lib/codeql/ruby/ast/internal

1 file changed

+1
-1
lines changed

ruby/ql/lib/codeql/ruby/ast/internal/Call.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class MethodCallSynth extends MethodCallImpl, TMethodCallSynth {
5050

5151
final override int getNumberOfArgumentsImpl() { this = TMethodCallSynth(_, _, _, _, result) }
5252

53-
final override Block getBlockImpl() { none() }
53+
final override Block getBlockImpl() { synthChild(this, -2, result) }
5454
}
5555

5656
class IdentifierMethodCall extends MethodCallImpl, TIdentifierMethodCall {

0 commit comments

Comments
 (0)