Inheritance: Microsoft.CodeAnalysis.CSharp.CSharpSyntaxWalker
Exemplo n.º 1
0
        public string CreateFromFile(string fileContent)
        {
            var tree = CSharpSyntaxTree.ParseText(fileContent);

            var comments = new CommentWalker();
            comments.Visit(tree.GetRoot());

            var nodes = tree.GetRoot().DescendantNodes(descendIntoTrivia: true);

            foreach (var syntaxNode in nodes)
            {

            }
            return "";
            //var res = new ExampleCode(null, )
        }
Exemplo n.º 2
0
        public string CreateFromFile(string fileContent)
        {
            var tree = CSharpSyntaxTree.ParseText(fileContent);

            var comments = new CommentWalker();

            comments.Visit(tree.GetRoot());

            var nodes = tree.GetRoot().DescendantNodes(descendIntoTrivia: true);

            foreach (var syntaxNode in nodes)
            {
            }
            return("");
            //var res = new ExampleCode(null, )
        }