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

Class ParameterPosition

A parameter position.

Import path

import semmle.python.dataflow.new.internal.DataFlowDispatch

Direct supertypes

Predicates

isDictSplat

Holds if this position represents a **kwargs parameter.

isKeyword

Holds if this position represents a keyword parameter named name.

isLambdaSelf

Holds if this position represents a reference to a lambda itself. Only used for tracking flow through captured variables.

isPositional

Holds if this position represents a positional parameter at (0-based) index.

isSelf

Holds if this position represents a self/cls parameter.

isStarArgs

Holds if this position represents a *args parameter at (0-based) index.

isSynthDictSplat

Holds if this position represents a synthetic **kwargs parameter (see comment for TSynthDictSplatParameterPosition).

isSynthStarArgsElement

Holds if this position represents a synthetic parameter at or after (0-based) position index, from which there will be made a store step to the real *args parameter.

toString

Gets a textual representation of this element.