53 references to ERR_InvalidPropertyAccessMod
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
777
case ErrorCode.
ERR_InvalidPropertyAccessMod
:
Symbols\Source\SourcePropertySymbolBase.cs (1)
908
diagnostics.Add(ErrorCode.
ERR_InvalidPropertyAccessMod
, accessor.Locations[0], 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 (48)
Symbols\DefaultInterfaceImplementationTests.cs (6)
12911
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("I1.P12.get", "I1.P12").WithLocation(16, 22),
13434
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("I1.P12.get", "I1.P12").WithLocation(16, 22),
13513
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("I1.P12.get", "I1.P12").WithLocation(16, 22),
21389
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("I12.this[int].get", "I12.this[int]").WithLocation(14, 48),
21908
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("I12.this[int].get", "I12.this[int]").WithLocation(14, 48),
21986
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("I12.this[int].get", "I12.this[int]").WithLocation(14, 48),
Symbols\SymbolErrorTests.cs (42)
3932
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "set").WithArguments("C.P1.set", "C.P1"),
3935
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.Q1.get", "C.Q1"),
3938
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.Q2.get", "C.Q2"),
3941
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.Q3.get", "C.Q3"),
3944
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.Q4.get", "C.Q4"),
3947
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "set").WithArguments("C.R1.set", "C.R1"),
3950
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "set").WithArguments("C.R2.set", "C.R2"),
3953
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "set").WithArguments("C.R3.set", "C.R3"),
3956
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "set").WithArguments("C.R4.set", "C.R4"),
3959
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "set").WithArguments("C.S1.set", "C.S1"),
3962
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "set").WithArguments("C.S4.set", "C.S4"),
3965
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.T1.get", "C.T1"),
3968
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.T2.get", "C.T2"),
3971
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.T3.get", "C.T3"),
3974
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.T4.get", "C.T4"),
3977
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.T5.get", "C.T5"),
3980
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.U1.get", "C.U1"),
3983
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.U2.get", "C.U2"),
3986
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.U3.get", "C.U3"),
3989
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.U4.get", "C.U4"),
3992
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.U5.get", "C.U5"));
4036
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "set").WithArguments("C.this[int, int, double].set", "C.this[int, int, double]"),
4039
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.this[int, int, char].get", "C.this[int, int, char]"),
4042
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.this[int, char, int].get", "C.this[int, char, int]"),
4045
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.this[int, char, char].get", "C.this[int, char, char]"),
4048
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.this[char, int, int].get", "C.this[char, int, int]"),
4051
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "set").WithArguments("C.this[int, int, long].set", "C.this[int, int, long]"),
4054
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "set").WithArguments("C.this[int, long, int].set", "C.this[int, long, int]"),
4057
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "set").WithArguments("C.this[int, long, long].set", "C.this[int, long, long]"),
4060
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "set").WithArguments("C.this[long, int, int].set", "C.this[long, int, int]"),
4063
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "set").WithArguments("C.this[int, int, float].set", "C.this[int, int, float]"),
4066
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "set").WithArguments("C.this[float, int, int].set", "C.this[float, int, int]"),
4069
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.this[int, int, string].get", "C.this[int, int, string]"),
4072
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.this[int, string, int].get", "C.this[int, string, int]"),
4075
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.this[int, string, string].get", "C.this[int, string, string]"),
4078
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.this[string, int, int].get", "C.this[string, int, int]"),
4081
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.this[string, int, string].get", "C.this[string, int, string]"),
4084
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.this[int, int, object].get", "C.this[int, int, object]"),
4087
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.this[int, object, int].get", "C.this[int, object, int]"),
4090
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.this[int, object, object].get", "C.this[int, object, object]"),
4093
Diagnostic(ErrorCode.
ERR_InvalidPropertyAccessMod
, "get").WithArguments("C.this[object, int, int].get", "C.this[object, int, int]"),
4096
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),