예제 #1
0
        public static string Generate(MethodDeclarationSyntax methodDeclaration, SemanticModel semanticModel)
        {
            var symbol  = (IMethodSymbol)semanticModel.GetDeclaredSymbol(methodDeclaration);
            var builder = new MethodXmlBuilder(symbol, semanticModel);

            builder.GenerateBlock(methodDeclaration.Body);

            return(builder.ToString());
        }
예제 #2
0
        public static string Generate(MethodDeclarationSyntax methodDeclaration, SemanticModel semanticModel)
        {
            var symbol = (IMethodSymbol)semanticModel.GetDeclaredSymbol(methodDeclaration);
            var builder = new MethodXmlBuilder(symbol, semanticModel);

            builder.GenerateBlock(methodDeclaration.Body);

            return builder.ToString();
        }