Skip to content

InlineVariable

InlineVariable holds a variable name and an AST expression graph used to replace it.

new InlineVariable(options): InlineVariable

constructor records the variable replacement configuration.

InlineVariableOptions

InlineVariable

alias(): string

alias returns the identifier used for generated cel.bind calls.

string


definition(): AST

definition returns the complete checked replacement AST.

AST


expr(): Expr

expr returns the inlined expression value.

Expr


name(): string

name returns the qualified variable or field selection to replace.

string


type(): Type

type returns the checked type of the inlined expression.

Type