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

Module Completion

Provides classes representing control flow completions.

A completion represents how a statement or expression terminates.

Import path

import codeql.ruby.controlflow.internal.Completion

Classes

BooleanCompletion

A completion that represents evaluation of an expression with a Boolean value.

BreakCompletion

A completion that represents evaluation of a statement or an expression resulting in a break from a loop.

Completion

A completion of a statement or an expression.

ConditionalCompletion

A completion that represents evaluation of an expression, whose value determines the successor. Either a Boolean completion (BooleanCompletion), or a matching completion (MatchingCompletion).

ExitCompletion

A completion that represents evaluation of a statement or an expression resulting in an abort/exit.

FalseCompletion

A Boolean false completion.

MatchingCompletion

A completion that represents evaluation of a matching test, for example a test in a rescue statement.

NestedBreakCompletion
NestedCompletion

A nested completion. For example, in

NestedEnsureCompletion
NestedMatchingCompletion

A completion used for conditions in pattern matching:

NextCompletion

A completion that represents evaluation of a statement or an expression resulting in a continuation of a loop.

NormalCompletion

A completion that represents normal evaluation of a statement or an expression.

RaiseCompletion

A completion that represents evaluation of a statement or an expression resulting in a thrown exception.

RedoCompletion

A completion that represents evaluation of a statement or an expression resulting in a redo of a loop iteration.

RetryCompletion

A completion that represents evaluation of a statement or an expression resulting in a retry.

ReturnCompletion

A completion that represents evaluation of a statement or an expression resulting in a return.

SimpleCompletion

A simple (normal) completion.

TrueCompletion

A Boolean true completion.