InlineVariable
InlineVariable holds a variable name and an AST expression graph used to replace it.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new InlineVariable(
options):InlineVariable
constructor records the variable replacement configuration.
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”InlineVariable
Methods
Section titled “Methods”alias()
Section titled “alias()”alias():
string
alias returns the identifier used for generated cel.bind calls.
Returns
Section titled “Returns”string
definition()
Section titled “definition()”definition():
AST
definition returns the complete checked replacement AST.
Returns
Section titled “Returns”expr()
Section titled “expr()”expr():
Expr
expr returns the inlined expression value.
Returns
Section titled “Returns”name()
Section titled “name()”name():
string
name returns the qualified variable or field selection to replace.
Returns
Section titled “Returns”string
type()
Section titled “type()”type():
Type
type returns the checked type of the inlined expression.