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

Member predicate PythonClassObjectInternal::functionAndOffset

Holds if the object function is called when this object is called and paramOffset is the difference from the parameter position and the argument position. For a normal function paramOffset is 0. For classes and bound-methods it is 1. This is used to implement the CallableValue public API.

predicate functionAndOffset(CallableObjectInternal function, int offset)