InliningOptimizer
InliningOptimizer replaces variables with checked expression definitions.
A single occurrence is replaced directly. Multiple bindable occurrences are replaced with an
expanded cel.bind expression at their least common ancestor so the definition is evaluated once.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new InliningOptimizer(
options?):InliningOptimizer
constructor configures the optimizer from a plain option object.
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”InliningOptimizer
Methods
Section titled “Methods”optimize()
Section titled “optimize()”optimize(
context,ast):AST
optimize applies each variable definition to the checked AST.