Beispiel #1
0
        private static IEnumerable <SyntaxNodeWrapper> ListDocumentMethodSyntaxes(CompilationUnitSyntax root)
        {
            var methodWalker = new MethodWalker();

            methodWalker.Visit(root);
            return(methodWalker.AllMembers);
        }
Beispiel #2
0
        public IEnumerable <IMethodInfoProvider> ListAllMethods()
        {
            var methodWalker = new MethodWalker();

            ProcessCSharpSolutionDocuments(
                (latestForkedSolution, document, root) =>
            {
                methodWalker.Visit(root);
                return(null);
            });

            return(methodWalker.AllMembers.Select(RoslynMethodInfoProviderFactory.Create));
        }