コード例 #1
0
    private string DebuggerToString()
    {
        var formatter = new DebuggerDisplayFormatter();

        formatter.FormatNode(this);
        return(formatter.ToString());
    }
コード例 #2
0
        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);
            }
        }