Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d016e3c

Browse files
committed
CFG: methods are evaluated before their arguments
1 parent 81c907a commit d016e3c

2 files changed

Lines changed: 355 additions & 355 deletions

File tree

ql/src/codeql_ruby/controlflow/internal/ControlFlowGraphImpl.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,9 @@ module Trees {
317317
final override AstNode getChildNode(int i) {
318318
result = this.getReceiver() and i = 0
319319
or
320-
result = this.getArguments() and i = 1
320+
result = this.getMethod() and i = 1
321321
or
322-
result = this.getMethod() and i = 2
322+
result = this.getArguments() and i = 2
323323
}
324324
}
325325

0 commit comments

Comments
 (0)