// public void Visit(ErrorNode errorNode) // { // AppendTextToCurrentAccumulator(errorNode.LiquidError.ToString()); // } public void Visit(IfChangedBlockTag ifChangedBlockTag) { // This maintains state, so there's only one. if (_isChangedRenderer == null) { _isChangedRenderer = new IfChangedRenderer(this); } AppendTextToCurrentAccumulator(_isChangedRenderer.Next(ifChangedBlockTag.UniqueId, ifChangedBlockTag.LiquidBlock)); }
// public void Visit(ErrorNode errorNode) // { // _result += errorNode.ToString(); // } public void Visit(IfChangedBlockTag ifChangedBlockTag) { _result += ifChangedBlockTag.ToString(); }