30 references to AnalyzerLoadFailed
CodeStyleConfigFileGenerator (1)
Program.cs (1)
56
analyzerFileReference.
AnalyzerLoadFailed
+= AnalyzerFileReference_AnalyzerLoadFailed;
GenerateRulesMissingDocumentation (1)
Program.cs (1)
154
analyzerFileReference.
AnalyzerLoadFailed
+= (sender, e) => throw e.Exception ?? new NotSupportedException(e.Message);
Microsoft.CodeAnalysis (10)
CommandLine\CommandLineArguments.cs (2)
549
resolvedReference.
AnalyzerLoadFailed
+= errorHandler;
552
resolvedReference.
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)
247
analyzerMainReference.
AnalyzerLoadFailed
+= (_, e) => AssertEx.Fail(e.Exception!.Message);
249
analyzerDependencyReference.
AnalyzerLoadFailed
+= (_, e) => AssertEx.Fail(e.Exception!.Message);
764
analyzerMainReference.
AnalyzerLoadFailed
+= (_, e) => AssertEx.Fail(e.Exception!.Message);
766
analyzerDependencyReference.
AnalyzerLoadFailed
+= (_, e) => AssertEx.Fail(e.Exception!.Message);
Analyzers\AnalyzerFileReferenceTests.cs (14)
149
reference.
AnalyzerLoadFailed
+= errorHandler;
153
reference.
AnalyzerLoadFailed
-= errorHandler;
168
reference.
AnalyzerLoadFailed
+= errorHandler;
172
reference.
AnalyzerLoadFailed
-= errorHandler;
185
reference.
AnalyzerLoadFailed
+= errorHandler;
189
reference.
AnalyzerLoadFailed
-= errorHandler;
245
reference.
AnalyzerLoadFailed
+= errorHandler;
249
reference.
AnalyzerLoadFailed
-= errorHandler;
263
reference.
AnalyzerLoadFailed
+= errorHandler;
267
reference.
AnalyzerLoadFailed
-= errorHandler;
285
reference.
AnalyzerLoadFailed
+= errorHandler;
289
reference.
AnalyzerLoadFailed
-= errorHandler;
496
reference.
AnalyzerLoadFailed
+= errorHandler;
499
reference.
AnalyzerLoadFailed
-= errorHandler;