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