xo-expression: + Expression::nested_layer()

This commit is contained in:
Roland Conybeare 2024-07-03 16:18:26 -04:00
commit 91a5a2b844
10 changed files with 61 additions and 2 deletions

View file

@ -48,6 +48,11 @@ namespace xo {
return 1;
}
virtual std::size_t visit_layer(VisitFn visitor_fn) override {
visitor_fn(this);
return 1;
}
virtual ref::rp<Expression> xform_layer(TransformFn xform_fn) override {
return xform_fn(this);
}