FormatAsTree() public method

public FormatAsTree ( int indentLevel ) : string
indentLevel int
return string
Beispiel #1
0
        private static void displayASTTransform(string patternText, BasePattern beforePattern, BasePattern afterPattern)
        {
            Console.WriteLine("Pattern Text:\n    {0}", patternText.ShowVerbatim());
            Console.WriteLine("Before Transform:");
            Console.WriteLine(beforePattern.FormatAsTree(1));
            Console.WriteLine("After Transform{0}:", afterPattern.Equals(beforePattern) ? " (unchanged)" : "");
            Console.WriteLine(afterPattern.FormatAsTree(1));

            Console.Write("\n");
        }