Add CallNode.getAResult()

This commit is contained in:
Owen Mansel-Chan
2020-05-28 12:21:28 +01:00
parent 1580591b73
commit 1c5a4605d6

View File

@@ -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() }
}