mirror of
https://github.com/github/codeql.git
synced 2026-01-29 22:32:58 +01:00
Add CallNode.getAResult()
This commit is contained in:
@@ -345,6 +345,9 @@ class CallNode extends ExprNode {
|
||||
*/
|
||||
Node getResult() { not getType() instanceof TupleType and result = this }
|
||||
|
||||
/** Gets a result of this call. */
|
||||
Node getAResult() { result = this.getResult(_) }
|
||||
|
||||
/** Gets the data flow node corresponding to the receiver of this call, if any. */
|
||||
Node getReceiver() { result = getACalleeSource().(MethodReadNode).getReceiver() }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user