This commit is contained in:
gnembon committed 2025-01-16 12:43:30 +01:00
1 parent c241594eb6
commit fd098151c4
18 files changed
+100 -39

No files matched your search

@@ -1251,6 +1251,12 @@ public class Expression
return extractOp(optimizeOnlyContext, root, Context.Type.NONE);
}
public Value explain(Context context)
{
//todo convert to explain
return Value.NULL;
}
private int treeSize(ExpressionNode node)
{
return node.op instanceof LazyValue.ContextFreeLazyValue ? 1 : node.args.stream().mapToInt(this::treeSize).sum() + 1;