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

Class FunctionInvocation

A function invocation.

This class represents a static approximation to the dynamic call-graph. A FunctionInvocation represents all calls made to a function for a given context.

Import path

import python

Direct supertypes

Predicates

getACallee

Gets a callee invocation. That is any invocation made from within this invocation.

getCall

Gets the call from which this invocation was made.

getCallee

Gets the callee invocation for the given callsite. The callsite must be within the function of this invocation.

getCaller

Gets the caller invocation of this invocation, if any.

getContext
getFunction
runtime

Holds if this is an invocation f in the “runtime” context.

toString

Gets a textual representation of this element.