Skip to content

AstNode

AstNode represents an AST node for the purpose of cost estimation.

computedSize(): SizeEstimate | undefined

computedSize returns the size known from the expression itself, if one exists.

SizeEstimate | undefined


expr(): Expr | undefined

expr returns the underlying expression when one exists.

Expr | undefined


path(): string[] | undefined

path returns a field path through the provided type declarations to the type of the node.

string[] | undefined


type(): Type

type returns the deduced CEL type of the node.

Type