CodeQL library for Python
codeql/python-all 1.0.5-dev (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.

isPositionalLowerBound

Holds if this position represents any positional parameter starting from position pos.

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.