Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit 1c5a460

Browse files
committed
Add CallNode.getAResult()
1 parent 1580591 commit 1c5a460

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ql/src/semmle/go/dataflow/internal/DataFlowUtil.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,9 @@ class CallNode extends ExprNode {
345345
*/
346346
Node getResult() { not getType() instanceof TupleType and result = this }
347347

348+
/** Gets a result of this call. */
349+
Node getAResult() { result = this.getResult(_) }
350+
348351
/** Gets the data flow node corresponding to the receiver of this call, if any. */
349352
Node getReceiver() { result = getACalleeSource().(MethodReadNode).getReceiver() }
350353
}

0 commit comments

Comments
 (0)