6 overrides of WithSeverity
Microsoft.CodeAnalysis (5)
CommandLine\CommonCompiler.SuppressionDiagnostic.cs (1)
99internal override Diagnostic WithSeverity(DiagnosticSeverity severity)
Diagnostic\Diagnostic.DiagnosticWithProgrammaticSuppression.cs (1)
123internal override Diagnostic WithSeverity(DiagnosticSeverity severity)
Diagnostic\Diagnostic_SimpleDiagnostic.cs (1)
194internal override Diagnostic WithSeverity(DiagnosticSeverity severity)
Diagnostic\DiagnosticWithInfo.cs (1)
210internal override Diagnostic WithSeverity(DiagnosticSeverity severity)
DiagnosticAnalyzer\CompilerDiagnosticAnalyzer.CompilationAnalyzer.cs (1)
127internal override Diagnostic WithSeverity(DiagnosticSeverity severity)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
EvaluationContextBase.cs (1)
171internal override Diagnostic WithSeverity(DiagnosticSeverity severity)
14 references to WithSeverity
Microsoft.CodeAnalysis (6)
Diagnostic\Diagnostic.cs (4)
533return this.WithSeverity(DiagnosticSeverity.Error); 537return this.WithSeverity(DiagnosticSeverity.Warning); 539return this.WithSeverity(DiagnosticSeverity.Info); 541return this.WithSeverity(DiagnosticSeverity.Hidden);
Diagnostic\Diagnostic.DiagnosticWithProgrammaticSuppression.cs (1)
127return new DiagnosticWithProgrammaticSuppression(_originalUnsuppressedDiagnostic.WithSeverity(severity), _programmaticSuppressionInfo);
DiagnosticAnalyzer\CompilerDiagnosticAnalyzer.CompilationAnalyzer.cs (1)
129return new CompilerDiagnostic(_original.WithSeverity(severity), _properties);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
Diagnostics\GetDiagnosticsTests.cs (4)
122var error = diag.WithSeverity(DiagnosticSeverity.Error); 127var warning = error.WithSeverity(DiagnosticSeverity.Warning); 132var hidden = diag.WithSeverity(DiagnosticSeverity.Hidden); 137var info = diag.WithSeverity(DiagnosticSeverity.Info);
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (4)
Diagnostics\GetDiagnosticsTests.vb (4)
107Dim [error] = diag.WithSeverity(DiagnosticSeverity.Error) 112Dim warning = [error].WithSeverity(DiagnosticSeverity.Warning) 117Dim hidden = warning.WithSeverity(DiagnosticSeverity.Hidden) 122Dim info = warning.WithSeverity(DiagnosticSeverity.Info)