23 references to ERR_BadMemberProtection
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
703or ErrorCode.ERR_BadMemberProtection
Symbols\Source\ModifierUtils.cs (1)
491diagnostics.Add(ErrorCode.ERR_BadMemberProtection, errorLocation);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (14)
PrivateProtected.cs (14)
42Diagnostic(ErrorCode.ERR_BadMemberProtection, "Field1").WithLocation(3, 26), 45Diagnostic(ErrorCode.ERR_BadMemberProtection, "Field2").WithLocation(4, 26), 48Diagnostic(ErrorCode.ERR_BadMemberProtection, "Field3").WithLocation(5, 36), 51Diagnostic(ErrorCode.ERR_BadMemberProtection, "Field4").WithLocation(6, 36), 54Diagnostic(ErrorCode.ERR_BadMemberProtection, "Field5").WithLocation(7, 34) 502Diagnostic(ErrorCode.ERR_BadMemberProtection, "C").WithLocation(7, 26), 505Diagnostic(ErrorCode.ERR_BadMemberProtection, "S").WithLocation(8, 27), 508Diagnostic(ErrorCode.ERR_BadMemberProtection, "E").WithLocation(9, 25), 511Diagnostic(ErrorCode.ERR_BadMemberProtection, "I").WithLocation(11, 30), 514Diagnostic(ErrorCode.ERR_BadMemberProtection, "Field").WithLocation(4, 24), 517Diagnostic(ErrorCode.ERR_BadMemberProtection, "Property").WithLocation(5, 24), 520Diagnostic(ErrorCode.ERR_BadMemberProtection, "M").WithLocation(6, 24), 523Diagnostic(ErrorCode.ERR_BadMemberProtection, "V").WithLocation(10, 40), 526Diagnostic(ErrorCode.ERR_BadMemberProtection, "this").WithLocation(12, 24)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\Source\EnumTests.cs (1)
245Diagnostic(ErrorCode.ERR_BadMemberProtection, "Figure5").WithLocation(7, 25),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Parsing\ParserErrorMessageTests.cs (6)
160Diagnostic(ErrorCode.ERR_BadMemberProtection, "f").WithLocation(4, 27), 163Diagnostic(ErrorCode.ERR_BadMemberProtection, "F").WithLocation(5, 24), 166Diagnostic(ErrorCode.ERR_BadMemberProtection, "P").WithLocation(6, 24), 169Diagnostic(ErrorCode.ERR_BadMemberProtection, "set").WithLocation(7, 45), 175Diagnostic(ErrorCode.ERR_BadMemberProtection, "C").WithLocation(8, 20), 178Diagnostic(ErrorCode.ERR_BadMemberProtection, "Main").WithLocation(9, 31)