1 write to ErrorCode
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerLoadFailureEventArgs.cs (1)
58
ErrorCode
= errorCode;
10 references to ErrorCode
Microsoft.CodeAnalysis (2)
CommandLine\CommandLineArguments.cs (1)
488
switch (e.
ErrorCode
)
DiagnosticAnalyzer\AnalyzerLoadFailureEventArgs.cs (1)
42
/// If <see cref="
ErrorCode
"/> is <see cref="FailureErrorCode.ReferencesNewerCompiler"/>, returns the compiler version referenced by the analyzer assembly. Otherwise, returns null.
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Features\Diagnostics\DocumentAnalysisExecutor_Helpers.cs (2)
82
switch (e.
ErrorCode
)
110
throw ExceptionUtilities.UnexpectedValue(e.
ErrorCode
);
Microsoft.CodeAnalysis.UnitTests (6)
Analyzers\AnalyzerFileReferenceTests.cs (6)
156
var failedTypes = errors.Where(e => e.
ErrorCode
== AnalyzerLoadFailureEventArgs.FailureErrorCode.UnableToCreateAnalyzer).Select(e => e.TypeName);
175
Assert.Equal(AnalyzerLoadFailureEventArgs.FailureErrorCode.UnableToLoadAnalyzer, errors.First().
ErrorCode
);
252
Assert.Equal(AnalyzerLoadFailureEventArgs.FailureErrorCode.UnableToCreateAnalyzer, errors.First().
ErrorCode
);
273
Assert.Equal(AnalyzerLoadFailureEventArgs.FailureErrorCode.UnableToCreateAnalyzer, error.
ErrorCode
);
293
Assert.Equal(AnalyzerLoadFailureEventArgs.FailureErrorCode.ReferencesNewerCompiler, error.
ErrorCode
);
461
Assert.Equal(AnalyzerLoadFailureEventArgs.FailureErrorCode.ReferencesFramework, errors.First().
ErrorCode
);