174 references to Error
Microsoft.AspNetCore.Razor.Language.UnitTests (30)
DefaultRazorCSharpLoweringPhaseTest.cs (1)
72new RazorDiagnosticDescriptor("1234", "I am an error.", RazorDiagnosticSeverity.Error),
DefaultRazorTagHelperBinderPhaseTest.cs (1)
477new RazorDiagnosticDescriptor("RZ9999", "Initial test error", RazorDiagnosticSeverity.Error),
DirectiveRemovalOptimizationPassTest.cs (1)
88var expectedDiagnostic = RazorDiagnostic.Create(new RazorDiagnosticDescriptor("RZ9999", "Some diagnostic message.", RazorDiagnosticSeverity.Error));
IntegrationTests\ComponentCodeGenerationTestBase.cs (1)
5660Assert.Equal(RazorDiagnosticSeverity.Error, d.Severity);
RazorDiagnosticDescriptorTest.cs (10)
17var descriptor = new RazorDiagnosticDescriptor("RZ0001", "Hello, World!", RazorDiagnosticSeverity.Error); 21Assert.Equal(RazorDiagnosticSeverity.Error, descriptor.Severity); 43var descriptor1 = new RazorDiagnosticDescriptor("RZ0001", "a!", RazorDiagnosticSeverity.Error); 44var descriptor2 = new RazorDiagnosticDescriptor("RZ0001", "a!", RazorDiagnosticSeverity.Error); 57var descriptor1 = new RazorDiagnosticDescriptor("RZ0001", "a!", RazorDiagnosticSeverity.Error); 58var descriptor2 = new RazorDiagnosticDescriptor("RZ0002", "b!", RazorDiagnosticSeverity.Error); 71var descriptor1 = new RazorDiagnosticDescriptor("RZ0001", "a!", RazorDiagnosticSeverity.Error); 72var descriptor2 = new RazorDiagnosticDescriptor("RZ0001", "a!", RazorDiagnosticSeverity.Error); 85var descriptor1 = new RazorDiagnosticDescriptor("RZ0001", "a!", RazorDiagnosticSeverity.Error); 86var descriptor2 = new RazorDiagnosticDescriptor("RZ0001", "b!", RazorDiagnosticSeverity.Error);
RazorDiagnosticTest.cs (16)
16var descriptor = new RazorDiagnosticDescriptor("RZ0001", "a", RazorDiagnosticSeverity.Error); 24Assert.Equal(RazorDiagnosticSeverity.Error, diagnostic.Severity); 32var descriptor = new RazorDiagnosticDescriptor("RZ0001", "a", RazorDiagnosticSeverity.Error); 40Assert.Equal(RazorDiagnosticSeverity.Error, diagnostic.Severity); 48var descriptor = new RazorDiagnosticDescriptor("RZ0000", "this is an {0}", RazorDiagnosticSeverity.Error); 64var descriptor = new RazorDiagnosticDescriptor("RZ0000", "this is an {0}", RazorDiagnosticSeverity.Error); 81var descriptor = new RazorDiagnosticDescriptor("RZ0000", "this is an error", RazorDiagnosticSeverity.Error); 97var descriptor = new RazorDiagnosticDescriptor("RZ0000", "this is an {0}", RazorDiagnosticSeverity.Error); 113var descriptor = new RazorDiagnosticDescriptor("RZ0000", "this is an {0}", RazorDiagnosticSeverity.Error); 130var descriptor = new RazorDiagnosticDescriptor("RZ0000", "this is an {0}", RazorDiagnosticSeverity.Error); 148var descriptor1 = new RazorDiagnosticDescriptor("RZ0001", "this is an {0}", RazorDiagnosticSeverity.Error); 149var descriptor2 = new RazorDiagnosticDescriptor("RZ0002", "this is an {0}", RazorDiagnosticSeverity.Error); 166var descriptor = new RazorDiagnosticDescriptor("RZ0000", "this is an {0}", RazorDiagnosticSeverity.Error); 183var descriptor = new RazorDiagnosticDescriptor("RZ0000", "this is an {0}", RazorDiagnosticSeverity.Error); 201var descriptor1 = new RazorDiagnosticDescriptor("RZ0001", "this is an {0}", RazorDiagnosticSeverity.Error); 202var descriptor2 = new RazorDiagnosticDescriptor("RZ0002", "this is an {0}", RazorDiagnosticSeverity.Error);
Microsoft.CodeAnalysis.Razor.Compiler (137)
CSharp\RazorDiagnosticFactory.cs (8)
40RazorDiagnosticSeverity.Error); 47RazorDiagnosticSeverity.Error); 55RazorDiagnosticSeverity.Error); 63RazorDiagnosticSeverity.Error); 71RazorDiagnosticSeverity.Error); 79RazorDiagnosticSeverity.Error); 87RazorDiagnosticSeverity.Error); 95RazorDiagnosticSeverity.Error);
Language\Components\ComponentDiagnosticFactory.cs (41)
21RazorDiagnosticSeverity.Error); 31RazorDiagnosticSeverity.Error); 39RazorDiagnosticSeverity.Error); 47RazorDiagnosticSeverity.Error); 55RazorDiagnosticSeverity.Error); 63RazorDiagnosticSeverity.Error); 71RazorDiagnosticSeverity.Error); 84RazorDiagnosticSeverity.Error); 95RazorDiagnosticSeverity.Error); 106RazorDiagnosticSeverity.Error); 118RazorDiagnosticSeverity.Error); 126RazorDiagnosticSeverity.Error); 139RazorDiagnosticSeverity.Error); 152RazorDiagnosticSeverity.Error); 160RazorDiagnosticSeverity.Error); 170RazorDiagnosticSeverity.Error); 178RazorDiagnosticSeverity.Error); 187RazorDiagnosticSeverity.Error); 199RazorDiagnosticSeverity.Error); 207RazorDiagnosticSeverity.Error); 216RazorDiagnosticSeverity.Error); 242RazorDiagnosticSeverity.Error); 259RazorDiagnosticSeverity.Error); 275RazorDiagnosticSeverity.Error); 283RazorDiagnosticSeverity.Error); 291RazorDiagnosticSeverity.Error); 302RazorDiagnosticSeverity.Error); 311RazorDiagnosticSeverity.Error); 319RazorDiagnosticSeverity.Error); 328RazorDiagnosticSeverity.Error); 336RazorDiagnosticSeverity.Error); 352RazorDiagnosticSeverity.Error); 360RazorDiagnosticSeverity.Error); 372RazorDiagnosticSeverity.Error); 380RazorDiagnosticSeverity.Error); 389RazorDiagnosticSeverity.Error); 397RazorDiagnosticSeverity.Error); 405RazorDiagnosticSeverity.Error); 413RazorDiagnosticSeverity.Error); 431RazorDiagnosticSeverity.Error); 439RazorDiagnosticSeverity.Error);
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (1)
2227=> diagnostics.Any(diagnostic => diagnostic.Severity == RazorDiagnosticSeverity.Error);
Language\RazorDiagnosticFactory.cs (78)
20RazorDiagnosticSeverity.Error); 34RazorDiagnosticSeverity.Error); 42RazorDiagnosticSeverity.Error); 50RazorDiagnosticSeverity.Error); 58RazorDiagnosticSeverity.Error); 66RazorDiagnosticSeverity.Error); 74RazorDiagnosticSeverity.Error); 82RazorDiagnosticSeverity.Error); 90RazorDiagnosticSeverity.Error); 98RazorDiagnosticSeverity.Error); 106RazorDiagnosticSeverity.Error); 114RazorDiagnosticSeverity.Error); 122RazorDiagnosticSeverity.Error); 130RazorDiagnosticSeverity.Error); 138RazorDiagnosticSeverity.Error); 146RazorDiagnosticSeverity.Error); 154RazorDiagnosticSeverity.Error); 162RazorDiagnosticSeverity.Error); 170RazorDiagnosticSeverity.Error); 178RazorDiagnosticSeverity.Error); 186RazorDiagnosticSeverity.Error); 194RazorDiagnosticSeverity.Error); 202RazorDiagnosticSeverity.Error); 210RazorDiagnosticSeverity.Error); 218RazorDiagnosticSeverity.Error); 226RazorDiagnosticSeverity.Error); 234RazorDiagnosticSeverity.Error); 242RazorDiagnosticSeverity.Error); 250RazorDiagnosticSeverity.Error); 258RazorDiagnosticSeverity.Error); 266RazorDiagnosticSeverity.Error); 274RazorDiagnosticSeverity.Error); 282RazorDiagnosticSeverity.Error); 290RazorDiagnosticSeverity.Error); 298RazorDiagnosticSeverity.Error); 306RazorDiagnosticSeverity.Error); 314RazorDiagnosticSeverity.Error); 322RazorDiagnosticSeverity.Error); 330RazorDiagnosticSeverity.Error); 338RazorDiagnosticSeverity.Error); 346RazorDiagnosticSeverity.Error); 354RazorDiagnosticSeverity.Error); 362RazorDiagnosticSeverity.Error); 370RazorDiagnosticSeverity.Error); 378RazorDiagnosticSeverity.Error); 394RazorDiagnosticSeverity.Error); 408RazorDiagnosticSeverity.Error); 416RazorDiagnosticSeverity.Error); 424RazorDiagnosticSeverity.Error); 432RazorDiagnosticSeverity.Error); 440RazorDiagnosticSeverity.Error); 448RazorDiagnosticSeverity.Error); 456RazorDiagnosticSeverity.Error); 464RazorDiagnosticSeverity.Error); 472RazorDiagnosticSeverity.Error); 480RazorDiagnosticSeverity.Error); 488RazorDiagnosticSeverity.Error); 496RazorDiagnosticSeverity.Error); 524RazorDiagnosticSeverity.Error); 532RazorDiagnosticSeverity.Error); 540RazorDiagnosticSeverity.Error); 548RazorDiagnosticSeverity.Error); 556RazorDiagnosticSeverity.Error); 564RazorDiagnosticSeverity.Error); 572RazorDiagnosticSeverity.Error); 579RazorDiagnosticSeverity.Error); 587RazorDiagnosticSeverity.Error); 595RazorDiagnosticSeverity.Error); 603RazorDiagnosticSeverity.Error); 611RazorDiagnosticSeverity.Error); 619RazorDiagnosticSeverity.Error); 627RazorDiagnosticSeverity.Error); 635RazorDiagnosticSeverity.Error); 643RazorDiagnosticSeverity.Error); 651RazorDiagnosticSeverity.Error); 659RazorDiagnosticSeverity.Error); 673RazorDiagnosticSeverity.Error); 687RazorDiagnosticSeverity.Error);
Language\TagHelperObject`1.cs (1)
19=> Diagnostics.Any(static d => d.Severity == RazorDiagnosticSeverity.Error);
Mvc\RazorExtensionsDiagnosticFactory.cs (7)
17RazorDiagnosticSeverity.Error); 30RazorDiagnosticSeverity.Error); 43RazorDiagnosticSeverity.Error); 56RazorDiagnosticSeverity.Error); 68RazorDiagnosticSeverity.Error); 81RazorDiagnosticSeverity.Error); 93RazorDiagnosticSeverity.Error);
SourceGenerators\Diagnostics\RazorDiagnostics.cs (1)
101RazorDiagnosticSeverity.Error => DiagnosticSeverity.Error,
Microsoft.CodeAnalysis.Razor.Workspaces (3)
CodeActions\Razor\ExtractToCodeBehindCodeActionProvider.cs (1)
77if (directiveNode.GetDiagnostics().Any(d => d.Severity == RazorDiagnosticSeverity.Error))
CodeActions\Razor\ExtractToCssCodeActionProvider.cs (1)
75if (markupElement.GetDiagnostics().Any(static d => d.Severity == RazorDiagnosticSeverity.Error))
Diagnostics\RazorDiagnosticHelper.cs (1)
66RazorDiagnosticSeverity.Error => LspDiagnosticSeverity.Error,
Microsoft.NET.Sdk.Razor.SourceGenerators.UnitTests (2)
RazorDiagnosticTest.cs (2)
16var diagnostics = RazorDiagnostic.Create(new RazorDiagnosticDescriptor("RZC1001", "Some message", RazorDiagnosticSeverity.Error)); 33var diagnostics = RazorDiagnostic.Create(new RazorDiagnosticDescriptor("RZC1001", "Some message", RazorDiagnosticSeverity.Error), span);
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (1)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Diagnostics\RazorDiagnosticHelperTest.cs (1)
40var severity = RazorDiagnosticHelper.ConvertSeverity(RazorDiagnosticSeverity.Error);
Microsoft.VisualStudioCode.RazorExtension.UnitTests (1)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Diagnostics\RazorDiagnosticHelperTest.cs (1)
40var severity = RazorDiagnosticHelper.ConvertSeverity(RazorDiagnosticSeverity.Error);