Exemplo n.º 1
0
        private static void SyntaxWalk()
        {
            SyntaxTree      tree      = CSharpSyntaxTree.ParseText(code);
            MethodCollector collector = new MethodCollector();

            collector.Visit(tree.GetRoot());
            collector.methods.ForEach(m => Console.WriteLine(m));
        }
Exemplo n.º 2
0
 private static void SyntaxWalk()
 {
     SyntaxTree tree = CSharpSyntaxTree.ParseText( code);
     MethodCollector collector = new MethodCollector();
     collector.Visit(tree.GetRoot());
     collector.methods.ForEach(m => Console.WriteLine(m));
 }