13 references to ERR_ProtectedInStatic
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1179
or ErrorCode.
ERR_ProtectedInStatic
Symbols\Source\SourceMemberContainerSymbol.cs (1)
2707
diagnostics.Add(ErrorCode.
ERR_ProtectedInStatic
, member.GetFirstLocation(), member);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
PrivateProtected.cs (2)
325
Diagnostic(ErrorCode.
ERR_ProtectedInStatic
, "Field1").WithArguments("C.Field1").WithLocation(3, 34)
790
Diagnostic(ErrorCode.
ERR_ProtectedInStatic
, "SomeExtension").WithArguments("Extensions.SomeExtension(string)").WithLocation(4, 35),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (9)
Symbols\SymbolErrorTests.cs (9)
14743
new ErrorDescription { Code = (int)ErrorCode.
ERR_ProtectedInStatic
, Line = 5, Column = 33 },
14744
new ErrorDescription { Code = (int)ErrorCode.
ERR_ProtectedInStatic
, Line = 6, Column = 40 });
14759
new ErrorDescription { Code = (int)ErrorCode.
ERR_ProtectedInStatic
, Line = 3, Column = 24 },
14760
new ErrorDescription { Code = (int)ErrorCode.
ERR_ProtectedInStatic
, Line = 3, Column = 28 },
14761
new ErrorDescription { Code = (int)ErrorCode.
ERR_ProtectedInStatic
, Line = 3, Column = 33 });
14773
new ErrorDescription { Code = (int)ErrorCode.
ERR_ProtectedInStatic
, Line = 3, Column = 33 },
14774
new ErrorDescription { Code = (int)ErrorCode.
ERR_ProtectedInStatic
, Line = 3, Column = 37 },
14775
new ErrorDescription { Code = (int)ErrorCode.
ERR_ProtectedInStatic
, Line = 3, Column = 42 });
14786
DiagnosticsUtils.VerifyErrorsAndGetCompilationWithMscorlib(text, new ErrorDescription { Code = (int)ErrorCode.
ERR_ProtectedInStatic
});