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