AstNode
AstNode represents an AST node for the purpose of cost estimation.
Methods
Section titled “Methods”computedSize()
Section titled “computedSize()”computedSize():
SizeEstimate|undefined
computedSize returns the size known from the expression itself, if one exists.
Returns
Section titled “Returns”SizeEstimate | undefined
expr()
Section titled “expr()”expr():
Expr|undefined
expr returns the underlying expression when one exists.
Returns
Section titled “Returns”Expr | undefined
path()
Section titled “path()”path():
string[] |undefined
path returns a field path through the provided type declarations to the type of the node.
Returns
Section titled “Returns”string[] | undefined
type()
Section titled “type()”type():
Type
type returns the deduced CEL type of the node.
Returns
Section titled “Returns”Type