Beispiel #1
0
        internal static void DumpAst(SyntaxNode node)
        {
            var doc = AstXmlSerializer.ToXml(node);

            Console.WriteLine(doc.ToString());
            Console.WriteLine();
        }
        public static XDocument ToXml(SyntaxNode node)
        {
            var visitor = new AstXmlSerializer(node);

            return(visitor.Visit());
        }