Skip to content

Commit 229914f

Browse files
committed
PS: Add 'Node.getCallee' predicate on DataFlow::CallNode.
1 parent 8e09d96 commit 229914f

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)