mirror of
https://github.com/github/codeql.git
synced 2026-02-19 08:23:45 +01:00
Replace count(getReceiver()) with 1
This commit is contained in:
@@ -915,9 +915,9 @@ module Trees {
|
||||
final override ControlFlowTree getChildNode(int i) {
|
||||
result = this.getReceiver() and i = 0
|
||||
or
|
||||
result = this.getArgument(i - count(this.getReceiver()))
|
||||
result = this.getArgument(i - 1)
|
||||
or
|
||||
result = this.getBlock() and i = count(this.getReceiver()) + this.getNumberOfArguments()
|
||||
result = this.getBlock() and i = 1 + this.getNumberOfArguments()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user