private string DebuggerToString() { var formatter = new DebuggerDisplayFormatter(); formatter.FormatNode(this); return(formatter.ToString()); }
internal static void Visit(IntermediateNode root, Node node) { var formatter = new DebuggerDisplayFormatter(); formatter.FormatNode(root); node.Content = formatter.ToString(); node.Start = root.Source?.AbsoluteIndex ?? 0; node.Length = root.Source?.Length ?? 0; foreach (var child in root.Children) { var n = new Node(); node.Children.Add(n); Visit(child, n); } }