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

Class ArgumentPosition

An argument position.

Import path

import codeql.ruby.dataflow.internal.DataFlowDispatch

Direct supertypes

Predicates

isAny

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

isAnyNamed

Holds if this position represents any positional parameter.

isBlock

Holds if this position represents a block argument.

isHashSplat

Holds if this position represents a hash-splat argument.

isKeyword

Holds if this position represents a keyword argument named name.

isLambdaSelf

Holds if this position represents a lambda self argument. Only used for tracking flow through captured variables.

isPositional

Holds if this position represents a positional argument at position pos.

isSelf

Holds if this position represents a self argument.

isSplat

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

isSynthHashSplat

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

isSynthSplat

Holds if this position represents a synthetic splat argument.

toString

Gets a textual representation of this position.