25 references to Diagnostic
Microsoft.NET.Sdk.Razor.SourceGenerators.UnitTests (25)
RazorSourceGeneratorComponentTests.cs (13)
46
Diagnostic
(ErrorCode.ERR_SingleTypeNameNotFound, "Class1").WithArguments("Class1").WithLocation(1, 16));
74
Diagnostic
("RZ10003").WithLocation(2, 1));
434
Diagnostic
(ErrorCode.ERR_CantInferMethTypeArgs, "M1").WithArguments("MyApp.Shared.Component1<T>.M1<T1>()").WithLocation(9, 9));
440
Diagnostic
("RZ10001").WithLocation(3, 1));
974
Diagnostic
("RZ10012").WithLocation(1, 1),
975
Diagnostic
("RZ10012").WithLocation(2, 1),
976
Diagnostic
("RZ10012").WithLocation(3, 1),
977
Diagnostic
("RZ10012").WithLocation(4, 1),
978
Diagnostic
("RZ10012").WithLocation(5, 1),
979
Diagnostic
("RZ10012").WithLocation(6, 1),
980
Diagnostic
("RZ10022").WithLocation(6, 16), // Attribute '@formname' can only be applied to 'form' elements.
981
Diagnostic
("RZ10012").WithLocation(7, 1),
982
Diagnostic
("RZ10023").WithLocation(7, 18)); // Attribute '@rendermode' is only valid when used on a component.
RazorSourceGeneratorTagHelperTests.cs (1)
88
Diagnostic
("RZ1042").WithLocation(3, 5));
RazorSourceGeneratorTests.cs (11)
541
Diagnostic
(ErrorCode.WRN_UninitializedNonNullableField, "Name").WithArguments("property", "Name").WithLocation(3, 19)
577
Diagnostic
(ErrorCode.WRN_UninitializedNonNullableField, "Name").WithArguments("property", "Name").WithLocation(4, 19)
1026
Diagnostic
(ErrorCode.ERR_SingleTypeNameNotFound, "SurveyPromptRootNamspace").WithArguments("SurveyPromptRootNamspace").WithLocation(2, 8)
1715
Diagnostic
(ErrorCode.WRN_UninitializedNonNullableField, "Name").WithArguments("property", "Name").WithLocation(4, 19)
2725
Diagnostic
("RZ3600").WithArguments(langVersion, RazorLanguageVersion.Preview.ToString()).WithLocation(1, 1));
2747
Diagnostic
("RZ3601").WithArguments(warningLevel).WithLocation(1, 1));
2978
Diagnostic
(ErrorCode.ERR_InvalidExprTerm, "/").WithArguments("/").WithLocation(3, 10),
2981
Diagnostic
(ErrorCode.ERR_NameNotInContext, "div").WithArguments("div").WithLocation(3, 11),
2984
Diagnostic
(ErrorCode.ERR_InvalidExprTerm, "").WithArguments(")").WithLocation(3, 15),
2987
Diagnostic
(ErrorCode.ERR_SemicolonExpected, "").WithLocation(3, 15),
2990
Diagnostic
(ErrorCode.ERR_RbraceExpected, "").WithLocation(3, 15));