55 references to ERR_InvalidPropertyAccessMod
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
839
or ErrorCode.
ERR_InvalidPropertyAccessMod
Symbols\Source\SourcePropertySymbolBase.cs (1)
1157
diagnostics.Add(ErrorCode.
ERR_InvalidPropertyAccessMod
, accessor.GetFirstLocation(), accessor, this);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
PrivateProtected.cs (2)
404
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "set").WithArguments("Class.Prop1.set", "Class.Prop1").WithLocation(3, 58),
407
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "set").WithArguments("Class.Prop2.set", "Class.Prop2").WithLocation(4, 48)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (50)
Symbols\DefaultInterfaceImplementationTests.cs (6)
13096
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("I1.P12.get", "I1.P12").WithLocation(16, 22),
13619
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("I1.P12.get", "I1.P12").WithLocation(16, 22),
13698
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("I1.P12.get", "I1.P12").WithLocation(16, 22),
21574
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("I12.this[int].get", "I12.this[int]").WithLocation(14, 48),
22093
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("I12.this[int].get", "I12.this[int]").WithLocation(14, 48),
22171
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("I12.this[int].get", "I12.this[int]").WithLocation(14, 48),
Symbols\PartialPropertiesTests.cs (2)
1517
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.P2.get", "C.P2").WithLocation(6, 30),
1520
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "set").WithArguments("C.P2.set", "C.P2").WithLocation(6, 43),
Symbols\SymbolErrorTests.cs (42)
3993
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "set").WithArguments("C.P1.set", "C.P1"),
3996
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.Q1.get", "C.Q1"),
3999
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.Q2.get", "C.Q2"),
4002
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.Q3.get", "C.Q3"),
4005
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.Q4.get", "C.Q4"),
4008
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "set").WithArguments("C.R1.set", "C.R1"),
4011
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "set").WithArguments("C.R2.set", "C.R2"),
4014
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "set").WithArguments("C.R3.set", "C.R3"),
4017
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "set").WithArguments("C.R4.set", "C.R4"),
4020
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "set").WithArguments("C.S1.set", "C.S1"),
4023
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "set").WithArguments("C.S4.set", "C.S4"),
4026
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.T1.get", "C.T1"),
4029
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.T2.get", "C.T2"),
4032
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.T3.get", "C.T3"),
4035
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.T4.get", "C.T4"),
4038
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.T5.get", "C.T5"),
4041
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.U1.get", "C.U1"),
4044
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.U2.get", "C.U2"),
4047
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.U3.get", "C.U3"),
4050
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.U4.get", "C.U4"),
4053
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.U5.get", "C.U5"));
4097
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "set").WithArguments("C.this[int, int, double].set", "C.this[int, int, double]"),
4100
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.this[int, int, char].get", "C.this[int, int, char]"),
4103
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.this[int, char, int].get", "C.this[int, char, int]"),
4106
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.this[int, char, char].get", "C.this[int, char, char]"),
4109
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.this[char, int, int].get", "C.this[char, int, int]"),
4112
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "set").WithArguments("C.this[int, int, long].set", "C.this[int, int, long]"),
4115
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "set").WithArguments("C.this[int, long, int].set", "C.this[int, long, int]"),
4118
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "set").WithArguments("C.this[int, long, long].set", "C.this[int, long, long]"),
4121
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "set").WithArguments("C.this[long, int, int].set", "C.this[long, int, int]"),
4124
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "set").WithArguments("C.this[int, int, float].set", "C.this[int, int, float]"),
4127
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "set").WithArguments("C.this[float, int, int].set", "C.this[float, int, int]"),
4130
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.this[int, int, string].get", "C.this[int, int, string]"),
4133
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.this[int, string, int].get", "C.this[int, string, int]"),
4136
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.this[int, string, string].get", "C.this[int, string, string]"),
4139
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.this[string, int, int].get", "C.this[string, int, int]"),
4142
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.this[string, int, string].get", "C.this[string, int, string]"),
4145
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.this[int, int, object].get", "C.this[int, int, object]"),
4148
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.this[int, object, int].get", "C.this[int, object, int]"),
4151
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.this[int, object, object].get", "C.this[int, object, object]"),
4154
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.this[object, int, int].get", "C.this[object, int, int]"),
4157
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.this[object, int, object].get", "C.this[object, int, object]"));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Parsing\ParserErrorMessageTests.cs (1)
172
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "set").WithArguments("C.Q.set", "C.Q").WithLocation(7, 45),