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

Injector TLambdaSelfParameterPosition

This is used for tracking flow through captured variables, and we use separate parameter/argument positions in order to distinguish “lambda self” from “normal self”, as lambdas may also access outer self variables (through variable capture).

Import path

import semmle.python.dataflow.new.internal.DataFlowDispatch
TLambdaSelfParameterPosition TLambdaSelfParameterPosition()