mirror of
https://github.com/github/codeql.git
synced 2026-05-25 00:27:09 +02:00
Merge pull request #247 from microsoft/add-get-callee-on-call-nodes
PS: Add `Node.getCallee` predicate on `DataFlow::CallNode`
This commit is contained in:
@@ -536,6 +536,8 @@ class CallNode extends ExprNode {
|
||||
* Note that this predicate doesn't get the pipeline argument, if any.
|
||||
*/
|
||||
Node getAnArgument() { result.asExpr() = call.getAnArgument() }
|
||||
|
||||
Node getCallee() { result.asExpr() = call.getCallee() }
|
||||
}
|
||||
|
||||
/** A call to operator `&`, viwed as a node in a data flow graph. */
|
||||
|
||||
Reference in New Issue
Block a user