public string CollectTree(ParserNode node) { _w = new IndentedWriter(); this.Push(_finishIndent); node.Visit(this); var result = _w.GetContentAsString(); _w = null; return(result); }
string CollectImpl(IParserStep node) { var stack = new Stack <IParserStep>(); for (var step = node; step != null; step = step.Prev) { stack.Push(step); } _w = new IndentedWriter(" "); _w.Push().Push(); while (stack.Count > 0) { stack.Pop().Visit(this); } var result = _w.GetContentAsString(); _w = null; return(result); }
public string GetDebugInfo() { return(_log == null ? null : _log.GetContentAsString()); }
public string GetLogSnapshot() { return(_log == null ? null : _log.GetContentAsString()); }