mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
Include MethodCall.getAChild in {Unary,Binary}Operation.getAChild
This commit is contained in:
@@ -30,6 +30,8 @@ class UnaryOperation extends Operation, MethodCall instanceof UnaryOperationImpl
|
||||
final override AstNode getAChild(string pred) {
|
||||
result = Operation.super.getAChild(pred)
|
||||
or
|
||||
result = MethodCall.super.getAChild(pred)
|
||||
or
|
||||
pred = "getOperand" and result = this.getOperand()
|
||||
}
|
||||
|
||||
@@ -127,6 +129,8 @@ class BinaryOperation extends Operation, MethodCall instanceof BinaryOperationIm
|
||||
override AstNode getAChild(string pred) {
|
||||
result = Operation.super.getAChild(pred)
|
||||
or
|
||||
result = MethodCall.super.getAChild(pred)
|
||||
or
|
||||
pred = "getLeftOperand" and result = this.getLeftOperand()
|
||||
or
|
||||
pred = "getRightOperand" and result = this.getRightOperand()
|
||||
|
||||
Reference in New Issue
Block a user