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); }
public MethodDocBuilder(MethodDocumentation methodDocumentation, TypeDocumentation typeDocumentation, AssemblyDocumentation assemblyDocumentation) : base(methodDocumentation, typeDocumentation, assemblyDocumentation) { }