mirror of
https://github.com/github/codeql.git
synced 2026-02-20 08:53:49 +01:00
Assignments evaluate right-hand-side first
This commit is contained in:
@@ -240,9 +240,9 @@ private module Trees {
|
||||
|
||||
private class AssignmentTree extends StandardPostOrderTree, Assignment {
|
||||
final override AstNode getChildNode(int i) {
|
||||
result = this.getLeft() and i = 0
|
||||
result = this.getRight() and i = 0
|
||||
or
|
||||
result = this.getRight() and i = 1
|
||||
result = this.getLeft() and i = 1
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user