34 references to WRN_ProtectedInSealed
Microsoft.CodeAnalysis.CSharp (4)
Binder\Semantics\AccessCheck.cs (1)
701: ErrorCode.WRN_ProtectedInSealed;
Errors\ErrorFacts.cs (2)
257case ErrorCode.WRN_ProtectedInSealed: 1002or ErrorCode.WRN_ProtectedInSealed
Generated\ErrorFacts.Generated.cs (1)
48case ErrorCode.WRN_ProtectedInSealed:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
PrivateProtected.cs (1)
322Diagnostic(ErrorCode.WRN_ProtectedInSealed, "Field2").WithArguments("D.Field2").WithLocation(7, 34),
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
Attributes\AttributeTests_Embedded.cs (1)
399Diagnostic(ErrorCode.WRN_ProtectedInSealed, "EmbeddedAttribute").WithArguments("Microsoft.CodeAnalysis.EmbeddedAttribute.EmbeddedAttribute()").WithLocation(6, 10 + ctorAccessModifier.Length)
Semantics\RecordTests.cs (7)
7584Diagnostic(ErrorCode.WRN_ProtectedInSealed, "PrintMembers").WithArguments("C1.PrintMembers(System.Text.StringBuilder)").WithLocation(4, 20), 14103Diagnostic(ErrorCode.WRN_ProtectedInSealed, "A").WithArguments("A.A(A)").WithLocation(4, 6 + accessibility.Length) 19340Diagnostic(ErrorCode.WRN_ProtectedInSealed, "EqualityContract").WithArguments("B.EqualityContract").WithLocation(10, 27), 19346Diagnostic(ErrorCode.WRN_ProtectedInSealed, "EqualityContract").WithArguments("C.EqualityContract").WithLocation(16, 35), 19419Diagnostic(ErrorCode.WRN_ProtectedInSealed, "EqualityContract").WithArguments("C.EqualityContract").WithLocation(13, 27), 19428Diagnostic(ErrorCode.WRN_ProtectedInSealed, "EqualityContract").WithArguments("D.EqualityContract").WithLocation(19, 35), 20093Diagnostic(ErrorCode.WRN_ProtectedInSealed, "EqualityContract").WithArguments("A.EqualityContract").WithLocation(3, 34),
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
InteractiveSessionTests.cs (1)
481Diagnostic(ErrorCode.WRN_ProtectedInSealed, "X").WithArguments("X").WithLocation(1, 39)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\ScriptSemanticsTests.cs (3)
760Diagnostic(ErrorCode.WRN_ProtectedInSealed, "x").WithArguments("x")); 770Diagnostic(ErrorCode.WRN_ProtectedInSealed, "x").WithArguments("x")); 784Diagnostic(ErrorCode.WRN_ProtectedInSealed, "x").WithArguments("x"));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (17)
Symbols\Source\ModifierTests.cs (2)
132Diagnostic(ErrorCode.WRN_ProtectedInSealed, "M3").WithArguments("M3()"), 134Diagnostic(ErrorCode.WRN_ProtectedInSealed, "M5").WithArguments("M5()"),
Symbols\SymbolErrorTests.cs (15)
18151new ErrorDescription { Code = (int)ErrorCode.WRN_ProtectedInSealed, Line = 5, Column = 23, IsWarning = true }, 18152new ErrorDescription { Code = (int)ErrorCode.WRN_ProtectedInSealed, Line = 6, Column = 33, IsWarning = true }, 18153new ErrorDescription { Code = (int)ErrorCode.WRN_ProtectedInSealed, Line = 11, Column = 33, IsWarning = true }, 18154new ErrorDescription { Code = (int)ErrorCode.WRN_ProtectedInSealed, Line = 12, Column = 21, IsWarning = true }); 18171new ErrorDescription { Code = (int)ErrorCode.WRN_ProtectedInSealed, Line = 3, Column = 22, IsWarning = true }, 18172new ErrorDescription { Code = (int)ErrorCode.WRN_ProtectedInSealed, Line = 4, Column = 35, IsWarning = true }, 18173new ErrorDescription { Code = (int)ErrorCode.WRN_ProtectedInSealed, Line = 8, Column = 26, IsWarning = true }, 18174new ErrorDescription { Code = (int)ErrorCode.WRN_ProtectedInSealed, Line = 8, Column = 45, IsWarning = true }); 18199Diagnostic(ErrorCode.WRN_ProtectedInSealed, "Nested").WithArguments("D.Nested"), 18202Diagnostic(ErrorCode.WRN_ProtectedInSealed, "Q").WithArguments("D.Q"), 18205Diagnostic(ErrorCode.WRN_ProtectedInSealed, "N").WithArguments("D.N()") 18221Diagnostic(ErrorCode.WRN_ProtectedInSealed, "E").WithArguments("C.E"), 18251Diagnostic(ErrorCode.WRN_ProtectedInSealed, "D").WithArguments("D.D(byte)").WithLocation(10, 15), 18254Diagnostic(ErrorCode.WRN_ProtectedInSealed, "D").WithArguments("D.D(short)").WithLocation(11, 24), 18257Diagnostic(ErrorCode.WRN_ProtectedInSealed, "D").WithArguments("D.D(int)").WithLocation(12, 24));