6 overrides of WithSeverity
Microsoft.CodeAnalysis (5)
CommandLine\CommonCompiler.SuppressionDiagnostic.cs (1)
99
internal override Diagnostic
WithSeverity
(DiagnosticSeverity severity)
Diagnostic\Diagnostic.DiagnosticWithProgrammaticSuppression.cs (1)
123
internal override Diagnostic
WithSeverity
(DiagnosticSeverity severity)
Diagnostic\Diagnostic_SimpleDiagnostic.cs (1)
195
internal override Diagnostic
WithSeverity
(DiagnosticSeverity severity)
Diagnostic\DiagnosticWithInfo.cs (1)
210
internal override Diagnostic
WithSeverity
(DiagnosticSeverity severity)
DiagnosticAnalyzer\CompilerDiagnosticAnalyzer.CompilationAnalyzer.cs (1)
127
internal override Diagnostic
WithSeverity
(DiagnosticSeverity severity)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
EvaluationContextBase.cs (1)
170
internal override Diagnostic
WithSeverity
(DiagnosticSeverity severity)
10 references to WithSeverity
Microsoft.CodeAnalysis (6)
Diagnostic\Diagnostic.cs (4)
536
return this.
WithSeverity
(DiagnosticSeverity.Error);
540
return this.
WithSeverity
(DiagnosticSeverity.Warning);
542
return this.
WithSeverity
(DiagnosticSeverity.Info);
544
return this.
WithSeverity
(DiagnosticSeverity.Hidden);
Diagnostic\Diagnostic.DiagnosticWithProgrammaticSuppression.cs (1)
127
return new DiagnosticWithProgrammaticSuppression(_originalUnsuppressedDiagnostic.
WithSeverity
(severity), _programmaticSuppressionInfo);
DiagnosticAnalyzer\CompilerDiagnosticAnalyzer.CompilationAnalyzer.cs (1)
129
return new CompilerDiagnostic(_original.
WithSeverity
(severity), _properties);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Diagnostics\GetDiagnosticsTests.cs (4)
123
var error = diag.
WithSeverity
(DiagnosticSeverity.Error);
128
var warning = error.
WithSeverity
(DiagnosticSeverity.Warning);
133
var hidden = diag.
WithSeverity
(DiagnosticSeverity.Hidden);
138
var info = diag.
WithSeverity
(DiagnosticSeverity.Info);