public override object?Visit(TreeBlockNode node, object?state) { // For block nodes, we want to rewrite the children first since doing so often exposes // opportunities to fold child block nodes into the current block node. We know that // blocks themselves never rewrite to anything other than a block or the single node // contained within. state = base.DefaultVisit(node, state); _ = Rewrite(node); return(state); }
public virtual T Visit(TreeBlockNode node, T state) { return(DefaultVisit(node, state)); }