168 references to new
Microsoft.AspNetCore.Razor.Language.UnitTests (28)
CodeGeneration\CodeRenderingContextTest.cs (2)
51
var descriptor = new
RazorDiagnosticDescriptor
("RZAlways", "Always on: '{0}'", RazorDiagnosticSeverity.Warning);
80
new
RazorDiagnosticDescriptor
("RZ0", "Always", RazorDiagnosticSeverity.Warning),
DefaultRazorCSharpLoweringPhaseTest.cs (1)
72
new
RazorDiagnosticDescriptor
("1234", "I am an error.", RazorDiagnosticSeverity.Error),
DefaultRazorTagHelperBinderPhaseTest.cs (1)
477
new
RazorDiagnosticDescriptor
("RZ9999", "Initial test error", RazorDiagnosticSeverity.Error),
DirectiveRemovalOptimizationPassTest.cs (1)
88
var expectedDiagnostic = RazorDiagnostic.Create(new
RazorDiagnosticDescriptor
("RZ9999", "Some diagnostic message.", RazorDiagnosticSeverity.Error));
RazorDiagnosticDescriptorTest.cs (9)
17
var descriptor = new
RazorDiagnosticDescriptor
("RZ0001", "Hello, World!", RazorDiagnosticSeverity.Error);
43
var descriptor1 = new
RazorDiagnosticDescriptor
("RZ0001", "a!", RazorDiagnosticSeverity.Error);
44
var descriptor2 = new
RazorDiagnosticDescriptor
("RZ0001", "a!", RazorDiagnosticSeverity.Error);
57
var descriptor1 = new
RazorDiagnosticDescriptor
("RZ0001", "a!", RazorDiagnosticSeverity.Error);
58
var descriptor2 = new
RazorDiagnosticDescriptor
("RZ0002", "b!", RazorDiagnosticSeverity.Error);
71
var descriptor1 = new
RazorDiagnosticDescriptor
("RZ0001", "a!", RazorDiagnosticSeverity.Error);
72
var descriptor2 = new
RazorDiagnosticDescriptor
("RZ0001", "a!", RazorDiagnosticSeverity.Error);
85
var descriptor1 = new
RazorDiagnosticDescriptor
("RZ0001", "a!", RazorDiagnosticSeverity.Error);
86
var descriptor2 = new
RazorDiagnosticDescriptor
("RZ0001", "b!", RazorDiagnosticSeverity.Error);
RazorDiagnosticTest.cs (14)
16
var descriptor = new
RazorDiagnosticDescriptor
("RZ0001", "a", RazorDiagnosticSeverity.Error);
32
var descriptor = new
RazorDiagnosticDescriptor
("RZ0001", "a", RazorDiagnosticSeverity.Error);
48
var descriptor = new
RazorDiagnosticDescriptor
("RZ0000", "this is an {0}", RazorDiagnosticSeverity.Error);
64
var descriptor = new
RazorDiagnosticDescriptor
("RZ0000", "this is an {0}", RazorDiagnosticSeverity.Error);
81
var descriptor = new
RazorDiagnosticDescriptor
("RZ0000", "this is an error", RazorDiagnosticSeverity.Error);
97
var descriptor = new
RazorDiagnosticDescriptor
("RZ0000", "this is an {0}", RazorDiagnosticSeverity.Error);
113
var descriptor = new
RazorDiagnosticDescriptor
("RZ0000", "this is an {0}", RazorDiagnosticSeverity.Error);
130
var descriptor = new
RazorDiagnosticDescriptor
("RZ0000", "this is an {0}", RazorDiagnosticSeverity.Error);
148
var descriptor1 = new
RazorDiagnosticDescriptor
("RZ0001", "this is an {0}", RazorDiagnosticSeverity.Error);
149
var descriptor2 = new
RazorDiagnosticDescriptor
("RZ0002", "this is an {0}", RazorDiagnosticSeverity.Error);
166
var descriptor = new
RazorDiagnosticDescriptor
("RZ0000", "this is an {0}", RazorDiagnosticSeverity.Error);
183
var descriptor = new
RazorDiagnosticDescriptor
("RZ0000", "this is an {0}", RazorDiagnosticSeverity.Error);
201
var descriptor1 = new
RazorDiagnosticDescriptor
("RZ0001", "this is an {0}", RazorDiagnosticSeverity.Error);
202
var descriptor2 = new
RazorDiagnosticDescriptor
("RZ0002", "this is an {0}", RazorDiagnosticSeverity.Error);
Microsoft.CodeAnalysis.Razor.Compiler (138)
CSharp\RazorDiagnosticFactory.cs (8)
38
new
($"{DiagnosticPrefix}3500",
45
new
($"{DiagnosticPrefix}3501",
53
new
($"{DiagnosticPrefix}3502",
61
new
($"{DiagnosticPrefix}3503",
69
new
($"{DiagnosticPrefix}3504",
77
new
($"{DiagnosticPrefix}3505",
85
new
($"{DiagnosticPrefix}3506",
93
new
($"{DiagnosticPrefix}3507",
Language\Components\ComponentDiagnosticFactory.cs (43)
18
new
($"{DiagnosticPrefix}9978",
27
new
($"{DiagnosticPrefix}9979",
37
new
($"{DiagnosticPrefix}9980",
45
new
($"{DiagnosticPrefix}9981",
53
new
($"{DiagnosticPrefix}9983",
61
new
($"{DiagnosticPrefix}9984",
69
new
($"{DiagnosticPrefix}9985",
80
new
($"{DiagnosticPrefix}10012",
93
new
($"{DiagnosticPrefix}9986",
104
new
($"{DiagnosticPrefix}9987",
116
new
($"{DiagnosticPrefix}9988",
124
new
($"{DiagnosticPrefix}9989",
137
new
($"{DiagnosticPrefix}9990",
149
new
($"{DiagnosticPrefix}9991",
158
new
($"{DiagnosticPrefix}9992",
168
new
($"{DiagnosticPrefix}9994",
176
new
($"{DiagnosticPrefix}9995",
184
new
($"{DiagnosticPrefix}9996",
197
new
($"{DiagnosticPrefix}9997",
205
new
($"{DiagnosticPrefix}9998",
213
new
($"{DiagnosticPrefix}9999",
240
new
($"{DiagnosticPrefix}10000",
256
new
($"{DiagnosticPrefix}10001",
273
new
($"{DiagnosticPrefix}10002",
281
new
($"{DiagnosticPrefix}10003",
289
new
($"{DiagnosticPrefix}10004",
300
new
($"{DiagnosticPrefix}10007",
308
new
($"{DiagnosticPrefix}10008",
317
new
($"{DiagnosticPrefix}10009",
325
new
($"{DiagnosticPrefix}10010",
334
new
($"{DiagnosticPrefix}10011",
342
new
($"{DiagnosticPrefix}10012",
350
new
($"{DiagnosticPrefix}10013",
358
new
($"{DiagnosticPrefix}10014",
370
new
($"{DiagnosticPrefix}10015",
378
new
($"{DiagnosticPrefix}10016",
387
new
($"{DiagnosticPrefix}10017",
395
new
($"{DiagnosticPrefix}10018",
403
new
($"{DiagnosticPrefix}10019",
411
new
($"{DiagnosticPrefix}10020",
421
new
($"{DiagnosticPrefix}10022",
429
new
($"{DiagnosticPrefix}10023",
437
new
($"{DiagnosticPrefix}10024",
Language\RazorDiagnosticFactory.cs (80)
18
new
($"{DiagnosticPrefix}0000",
32
new
($"{DiagnosticPrefix}1000",
40
new
($"{DiagnosticPrefix}1001",
48
new
($"{DiagnosticPrefix}1002",
56
new
($"{DiagnosticPrefix}1003",
64
new
($"{DiagnosticPrefix}1004",
72
new
($"{DiagnosticPrefix}1005",
80
new
($"{DiagnosticPrefix}1006",
88
new
($"{DiagnosticPrefix}1007",
96
new
($"{DiagnosticPrefix}1008",
104
new
($"{DiagnosticPrefix}1009",
112
new
($"{DiagnosticPrefix}1010",
120
new
($"{DiagnosticPrefix}1011",
128
new
($"{DiagnosticPrefix}1012",
136
new
($"{DiagnosticPrefix}1013",
144
new
($"{DiagnosticPrefix}1014",
152
new
($"{DiagnosticPrefix}1015",
160
new
($"{DiagnosticPrefix}1016",
168
new
($"{DiagnosticPrefix}1017",
176
new
($"{DiagnosticPrefix}1018",
184
new
($"{DiagnosticPrefix}1019",
192
new
($"{DiagnosticPrefix}1020",
200
new
($"{DiagnosticPrefix}1021",
208
new
($"{DiagnosticPrefix}1022",
216
new
($"{DiagnosticPrefix}1023",
224
new
($"{DiagnosticPrefix}1024",
232
new
($"{DiagnosticPrefix}1025",
240
new
($"{DiagnosticPrefix}1026",
248
new
($"{DiagnosticPrefix}1027",
256
new
($"{DiagnosticPrefix}1028",
264
new
($"{DiagnosticPrefix}1029",
272
new
($"{DiagnosticPrefix}1030",
280
new
($"{DiagnosticPrefix}1031",
288
new
($"{DiagnosticPrefix}1032",
296
new
($"{DiagnosticPrefix}1033",
304
new
($"{DiagnosticPrefix}1034",
312
new
($"{DiagnosticPrefix}1035",
320
new
($"{DiagnosticPrefix}1036",
328
new
($"{DiagnosticPrefix}1037",
336
new
($"{DiagnosticPrefix}1038",
344
new
($"{DiagnosticPrefix}1039",
352
new
($"{DiagnosticPrefix}1040",
360
new
($"{DiagnosticPrefix}1041",
368
new
($"{DiagnosticPrefix}1042",
376
new
($"{DiagnosticPrefix}1043",
384
new
($"{DiagnosticPrefix}1044",
392
new
($"{DiagnosticPrefix}1045",
406
new
($"{DiagnosticPrefix}2000",
414
new
($"{DiagnosticPrefix}2001",
422
new
($"{DiagnosticPrefix}2002",
430
new
($"{DiagnosticPrefix}2003",
438
new
($"{DiagnosticPrefix}2004",
446
new
($"{DiagnosticPrefix}2005",
454
new
($"{DiagnosticPrefix}2006",
462
new
($"{DiagnosticPrefix}2007",
470
new
($"{DiagnosticPrefix}2008",
478
new
($"{DiagnosticPrefix}2009",
486
new
($"{DiagnosticPrefix}2010",
494
new
($"{DiagnosticPrefix}2011",
508
new
($"{DiagnosticPrefix}2012",
522
new
($"{DiagnosticPrefix}3000",
530
new
($"{DiagnosticPrefix}3001",
538
new
($"{DiagnosticPrefix}3002",
546
new
($"{DiagnosticPrefix}3003",
554
new
($"{DiagnosticPrefix}3004",
562
new
($"{DiagnosticPrefix}3005",
570
new
($"{DiagnosticPrefix}3006",
577
new
($"{DiagnosticPrefix}3007",
585
new
($"{DiagnosticPrefix}3008",
593
new
($"{DiagnosticPrefix}3009",
601
new
($"{DiagnosticPrefix}3010",
609
new
($"{DiagnosticPrefix}3011",
617
new
($"{DiagnosticPrefix}3012",
625
new
($"{DiagnosticPrefix}3013",
633
new
($"{DiagnosticPrefix}3014",
641
new
($"{DiagnosticPrefix}3015",
649
new
($"{DiagnosticPrefix}3016",
657
new
($"{DiagnosticPrefix}3017",
671
new
($"{DiagnosticPrefix}4000",
685
new
($"{DiagnosticPrefix}5000",
Mvc\RazorExtensionsDiagnosticFactory.cs (7)
15
new
($"{DiagnosticPrefix}3900",
28
new
($"{DiagnosticPrefix}3901",
41
new
($"{DiagnosticPrefix}3902",
54
new
($"{DiagnosticPrefix}3903",
66
new
($"{DiagnosticPrefix}3904",
79
new
($"{DiagnosticPrefix}3905",
91
new
($"{DiagnosticPrefix}3906",
Microsoft.NET.Sdk.Razor.SourceGenerators.UnitTests (2)
RazorDiagnosticTest.cs (2)
16
var diagnostics = RazorDiagnostic.Create(new
RazorDiagnosticDescriptor
("RZC1001", "Some message", RazorDiagnosticSeverity.Error));
33
var diagnostics = RazorDiagnostic.Create(new
RazorDiagnosticDescriptor
("RZC1001", "Some message", RazorDiagnosticSeverity.Error), span);