30 references to AnalyzerLoadFailed
CodeStyleConfigFileGenerator (1)
Program.cs (1)
56analyzerFileReference.AnalyzerLoadFailed += AnalyzerFileReference_AnalyzerLoadFailed;
GenerateRulesMissingDocumentation (1)
Program.cs (1)
154analyzerFileReference.AnalyzerLoadFailed += (sender, e) => throw e.Exception ?? new NotSupportedException(e.Message);
Microsoft.CodeAnalysis (10)
CommandLine\CommandLineArguments.cs (2)
549resolvedReference.AnalyzerLoadFailed += errorHandler; 552resolvedReference.AnalyzerLoadFailed -= errorHandler;
DiagnosticAnalyzer\AnalyzerFileReference.cs (8)
483_reference.AnalyzerLoadFailed?.Invoke(_reference, CreateAnalyzerFailedArgs(e)); 506_reference.AnalyzerLoadFailed?.Invoke(_reference, new AnalyzerLoadFailureEventArgs(AnalyzerLoadFailureEventArgs.FailureErrorCode.NoAnalyzers, CodeAnalysisResources.NoAnalyzersFound)); 534_reference.AnalyzerLoadFailed?.Invoke(_reference, CreateAnalyzerFailedArgs(e)); 555_reference.AnalyzerLoadFailed?.Invoke(_reference, new AnalyzerLoadFailureEventArgs(AnalyzerLoadFailureEventArgs.FailureErrorCode.NoAnalyzers, CodeAnalysisResources.NoAnalyzersFound)); 568_reference.AnalyzerLoadFailed?.Invoke(_reference, new AnalyzerLoadFailureEventArgs(AnalyzerLoadFailureEventArgs.FailureErrorCode.ReferencesNewerCompiler, message: "") { ReferencedCompilerVersion = referencedAssemblyName.Version }); 602_reference.AnalyzerLoadFailed?.Invoke(_reference, CreateAnalyzerFailedArgs(e, typeName)); 615_reference.AnalyzerLoadFailed?.Invoke(_reference, new AnalyzerLoadFailureEventArgs( 630_reference.AnalyzerLoadFailed?.Invoke(_reference, CreateAnalyzerFailedArgs(e, typeName));
Microsoft.CodeAnalysis.UnitTests (18)
AnalyzerAssemblyLoaderTests.cs (4)
247analyzerMainReference.AnalyzerLoadFailed += (_, e) => AssertEx.Fail(e.Exception!.Message); 249analyzerDependencyReference.AnalyzerLoadFailed += (_, e) => AssertEx.Fail(e.Exception!.Message); 764analyzerMainReference.AnalyzerLoadFailed += (_, e) => AssertEx.Fail(e.Exception!.Message); 766analyzerDependencyReference.AnalyzerLoadFailed += (_, e) => AssertEx.Fail(e.Exception!.Message);
Analyzers\AnalyzerFileReferenceTests.cs (14)
149reference.AnalyzerLoadFailed += errorHandler; 153reference.AnalyzerLoadFailed -= errorHandler; 168reference.AnalyzerLoadFailed += errorHandler; 172reference.AnalyzerLoadFailed -= errorHandler; 185reference.AnalyzerLoadFailed += errorHandler; 189reference.AnalyzerLoadFailed -= errorHandler; 245reference.AnalyzerLoadFailed += errorHandler; 249reference.AnalyzerLoadFailed -= errorHandler; 263reference.AnalyzerLoadFailed += errorHandler; 267reference.AnalyzerLoadFailed -= errorHandler; 285reference.AnalyzerLoadFailed += errorHandler; 289reference.AnalyzerLoadFailed -= errorHandler; 496reference.AnalyzerLoadFailed += errorHandler; 499reference.AnalyzerLoadFailed -= errorHandler;