CodeQL library for Ruby
codeql/ruby-all 4.1.2-dev (changelog, source)
Search

Class ParameterPosition

A parameter position.

Import path

import codeql.ruby.dataflow.internal.DataFlowDispatch

Direct supertypes

Predicates

isAny

Holds if this position represents any parameter, except self parameters. This includes both positional, named, and block parameters.

isAnyNamed

Holds if this position represents any positional parameter.

isBlock

Holds if this position represents a block parameter.

isHashSplat

Holds if this position represents a hash-splat 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 position pos.

isPositionalLowerBound

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

isSelf

Holds if this position represents a self parameter.

isSplat

Holds if this position represents a splat parameter at position n.

isSynthHashSplat

Holds if this position represents a synthetic hash-splat parameter.

isSynthSplat

Holds if this position represents a synthetic splat parameter.

toString

Gets a textual representation of this position.