private static bool IsExceptionDocumented(ITypeSymbol thrownExceptionType, MethodDocumentation symbolDocumentation, SymbolAnalysisContext context)
 {
     foreach (var documentedException in symbolDocumentation.Exceptions)
     {
         var documentedExceptionTypeName = documentedException.Type.Substring(2);
         var documentedExceptionType     = context.Compilation.GetTypeByMetadataName(documentedExceptionTypeName);
         if (thrownExceptionType.Equals(documentedExceptionType))
         {
             return(true);
         }
     }
     return(false);
 }
예제 #2
0
 public MethodDocBuilder(MethodDocumentation methodDocumentation, TypeDocumentation typeDocumentation, AssemblyDocumentation assemblyDocumentation)
     : base(methodDocumentation, typeDocumentation, assemblyDocumentation)
 {
 }