CodeQL library for Python
codeql/python-all 2.1.1-dev (changelog, source)
Search

Member predicate LocalSourceNode::getAMethodCall

Gets a call to the method methodName on this node.

Includes both calls that have the syntactic shape of a method call (as in obj.m(...)), and calls where the callee undergoes some additional local data flow (as in tmp = obj.m; m(...)).

MethodCallNode getAMethodCall(string methodName)