36 references to WRN_ProtectedInSealed
Microsoft.CodeAnalysis.CSharp (4)
Binder\Semantics\AccessCheck.cs (1)
698return containingType.TypeKind == TypeKind.Struct ? ErrorCode.ERR_ProtectedInStruct : ErrorCode.WRN_ProtectedInSealed;
Errors\ErrorFacts.cs (2)
244case ErrorCode.WRN_ProtectedInSealed: 940case 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.Scripting.UnitTests (1)
InteractiveSessionTests.cs (1)
480Diagnostic(ErrorCode.WRN_ProtectedInSealed, "X").WithArguments("X").WithLocation(1, 39)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (13)
Semantics\RecordTests.cs (10)
7529Diagnostic(ErrorCode.WRN_ProtectedInSealed, "PrintMembers").WithArguments("C1.PrintMembers(System.Text.StringBuilder)").WithLocation(4, 20), 14045Diagnostic(ErrorCode.WRN_ProtectedInSealed, "A").WithArguments("A.A(A)").WithLocation(4, 6 + accessibility.Length) 19237Diagnostic(ErrorCode.WRN_ProtectedInSealed, "EqualityContract").WithArguments("B.EqualityContract").WithLocation(10, 27), 19243Diagnostic(ErrorCode.WRN_ProtectedInSealed, "throw null").WithArguments("B.EqualityContract.get").WithLocation(11, 12), 19246Diagnostic(ErrorCode.WRN_ProtectedInSealed, "EqualityContract").WithArguments("C.EqualityContract").WithLocation(16, 35), 19319Diagnostic(ErrorCode.WRN_ProtectedInSealed, "EqualityContract").WithArguments("C.EqualityContract").WithLocation(13, 27), 19328Diagnostic(ErrorCode.WRN_ProtectedInSealed, "throw null").WithArguments("C.EqualityContract.get").WithLocation(14, 12), 19331Diagnostic(ErrorCode.WRN_ProtectedInSealed, "EqualityContract").WithArguments("D.EqualityContract").WithLocation(19, 35), 19996Diagnostic(ErrorCode.WRN_ProtectedInSealed, "EqualityContract").WithArguments("A.EqualityContract").WithLocation(3, 34), 20005Diagnostic(ErrorCode.WRN_ProtectedInSealed, "throw null").WithArguments("A.EqualityContract.get").WithLocation(3, 54)
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)
18006new ErrorDescription { Code = (int)ErrorCode.WRN_ProtectedInSealed, Line = 5, Column = 23, IsWarning = true }, 18007new ErrorDescription { Code = (int)ErrorCode.WRN_ProtectedInSealed, Line = 6, Column = 33, IsWarning = true }, 18008new ErrorDescription { Code = (int)ErrorCode.WRN_ProtectedInSealed, Line = 11, Column = 33, IsWarning = true }, 18009new ErrorDescription { Code = (int)ErrorCode.WRN_ProtectedInSealed, Line = 12, Column = 21, IsWarning = true }); 18026new ErrorDescription { Code = (int)ErrorCode.WRN_ProtectedInSealed, Line = 3, Column = 22, IsWarning = true }, 18027new ErrorDescription { Code = (int)ErrorCode.WRN_ProtectedInSealed, Line = 4, Column = 35, IsWarning = true }, 18028new ErrorDescription { Code = (int)ErrorCode.WRN_ProtectedInSealed, Line = 8, Column = 26, IsWarning = true }, 18029new ErrorDescription { Code = (int)ErrorCode.WRN_ProtectedInSealed, Line = 8, Column = 45, IsWarning = true }); 18054Diagnostic(ErrorCode.WRN_ProtectedInSealed, "Nested").WithArguments("D.Nested"), 18057Diagnostic(ErrorCode.WRN_ProtectedInSealed, "Q").WithArguments("D.Q"), 18060Diagnostic(ErrorCode.WRN_ProtectedInSealed, "N").WithArguments("D.N()") 18076Diagnostic(ErrorCode.WRN_ProtectedInSealed, "E").WithArguments("C.E"), 18106Diagnostic(ErrorCode.WRN_ProtectedInSealed, "D").WithArguments("D.D(byte)").WithLocation(10, 15), 18109Diagnostic(ErrorCode.WRN_ProtectedInSealed, "D").WithArguments("D.D(short)").WithLocation(11, 24), 18112Diagnostic(ErrorCode.WRN_ProtectedInSealed, "D").WithArguments("D.D(int)").WithLocation(12, 24));