Skip to content

PruneAstOptions

PruneAstOptions configures AST pruning from observed evaluation state.

expr: Expr

expr is the expression tree to prune.


macroCalls: Map<number, Expr>

macroCalls maps expanded expression ids to their original macro calls.


state: EvalState

state contains values observed while evaluating the expression.