Skip to content

Commit 56977c7

Browse files
authored
Merge pull request #247 from microsoft/add-get-callee-on-call-nodes
PS: Add `Node.getCallee` predicate on `DataFlow::CallNode`
2 parents 8e09d96 + 229914f commit 56977c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

powershell/ql/lib/semmle/code/powershell/dataflow/internal/DataFlowPublic.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,8 @@ class CallNode extends ExprNode {
536536
* Note that this predicate doesn't get the pipeline argument, if any.
537537
*/
538538
Node getAnArgument() { result.asExpr() = call.getAnArgument() }
539+
540+
Node getCallee() { result.asExpr() = call.getCallee() }
539541
}
540542

541543
/** A call to operator `&`, viwed as a node in a data flow graph. */

0 commit comments

Comments
 (0)