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