예제 #1
0
        public static Dictionary <TextSpan, BaseMethodDeclarationSyntax> GetMethodSpans(SyntaxNode syntaxNode)
        {
            var msf = new MethodSpanFinder();

            msf.Visit(syntaxNode);
            return(msf.span2Method);
        }
예제 #2
0
        public static Dictionary <TextSpan, BaseMethodDeclarationSyntax> GetMethodSpans(CompilationUnitSyntax compilationUnit)
        {
            var msf = new MethodSpanFinder();

            msf.Visit(compilationUnit);
            return(msf.span2Method);
        }