Example #1
0
    private string DebuggerToString()
    {
        var formatter = new DebuggerDisplayFormatter();

        formatter.FormatNode(this);
        return(formatter.ToString());
    }
Example #2
0
        private static string SerializeIR(IntermediateNode node)
        {
            var formatter = new DebuggerDisplayFormatter();

            formatter.FormatTree(node);
            return(formatter.ToString());
        }
Example #3
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);
            }
        }