65 references to ERR_ExplicitPropertyAddingAccessor
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
957
or ErrorCode.
ERR_ExplicitPropertyAddingAccessor
Symbols\Source\SourceEventSymbol.cs (1)
857
diagnostics.Add(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, thisAccessor.GetFirstLocation(), thisAccessor, explicitlyImplementedEvent);
Symbols\Source\SourcePropertySymbolBase.cs (1)
1202
diagnostics.Add(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, thisAccessor.GetFirstLocation(), thisAccessor, explicitlyImplementedProperty);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (19)
Semantics\InheritanceBindingTests.cs (8)
5798
new ErrorDescription { Code = (int)ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, Line = 24, Column = 31 }, //4
5799
new ErrorDescription { Code = (int)ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, Line = 25, Column = 49 }, //5
5802
new ErrorDescription { Code = (int)ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, Line = 27, Column = 31 }, //7
5803
new ErrorDescription { Code = (int)ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, Line = 29, Column = 31 }, //9
5859
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("Class.Interface.this[int, string, int, string].set", "Interface.this[int, string, int, string]").WithLocation(24, 60),
5862
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("Class.Interface.this[int, string, string, int].set", "Interface.this[int, string, string, int]").WithLocation(25, 78),
5865
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("Class.Interface.this[int, string, string, string].get", "Interface.this[int, string, string, string]").WithLocation(27, 63),
5871
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("Class.Interface.this[string, int, int, string].get", "Interface.this[string, int, int, string]").WithLocation(29, 60),
Semantics\InitOnlyMemberTests.cs (3)
2164
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("DerivedWithInitAndGetter.I.Property.get", "I.Property").WithLocation(12, 25),
2199
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("DerivedWithInitAndGetter.I.Property.get", "I.Property").WithLocation(16, 25)
2244
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("DerivedGetterOnly.I.Property.get", "I.Property").WithLocation(12, 25)
Semantics\NullableReferenceTypesTests.cs (8)
15903
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("B.A.P1.set", "A.P1").WithLocation(11, 30),
15906
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("B.A.P2.set", "A.P2").WithLocation(12, 30)
15986
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("B.A.P1.set", "A.P1").WithLocation(11, 30),
15989
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("B.A.P2.set", "A.P2").WithLocation(12, 30)
16014
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("C.B.P1.get", "B.P1").WithLocation(11, 26),
16017
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("C.B.P2.get", "B.P2").WithLocation(12, 26)
16063
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("C.B.P1.get", "B.P1").WithLocation(11, 26),
16066
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("C.B.P2.get", "B.P2").WithLocation(12, 26)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (43)
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (2)
835
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("CSIPropImpl.IProp.ReadOnlyProp.set", "IProp.ReadOnlyProp"),
838
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("CSIPropImpl.IProp.WriteOnlyProp.get", "IProp.WriteOnlyProp"),
Symbols\DefaultInterfaceImplementationTests.cs (38)
20182
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("Test1.I1.P3.get", "I1.P3").WithLocation(21, 9),
20185
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("Test1.I1.P4.set", "I1.P4").WithLocation(28, 9),
20188
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("ITest1.I1.P3.get", "I1.P3").WithLocation(36, 9),
20191
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("ITest1.I1.P4.set", "I1.P4").WithLocation(43, 9),
20194
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("I2.Test3.I2.P5.get", "I2.P5").WithLocation(65, 13),
20197
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("I2.Test3.I2.P6.set", "I2.P6").WithLocation(72, 13),
20200
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("I2.ITest3.I2.P5.get", "I2.P5").WithLocation(80, 13),
20203
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("I2.ITest3.I2.P6.set", "I2.P6").WithLocation(87, 13)
26751
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("Test1.I1.this[short].get", "I1.this[short]").WithLocation(21, 9),
26754
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("Test1.I1.this[int].set", "I1.this[int]").WithLocation(28, 9),
26757
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("ITest1.I1.this[short].get", "I1.this[short]").WithLocation(36, 9),
26760
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("ITest1.I1.this[int].set", "I1.this[int]").WithLocation(43, 9),
26763
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("I2.Test3.I2.this[short].get", "I2.this[short]").WithLocation(65, 13),
26766
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("I2.Test3.I2.this[int].set", "I2.this[int]").WithLocation(72, 13),
26769
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("I2.ITest3.I2.this[short].get", "I2.this[short]").WithLocation(80, 13),
26772
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("I2.ITest3.I2.this[int].set", "I2.this[int]").WithLocation(87, 13)
38183
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("I4.I3.M1.set", "I3.M1").WithLocation(36, 9),
38186
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("I4.I3.M2.get", "I3.M2").WithLocation(40, 9),
38274
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("I4.I3.M1.set", "I3.M1").WithLocation(36, 9),
38277
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("I4.I3.M2.get", "I3.M2").WithLocation(40, 9)
43084
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("I4.I3.this[int].set", "I3.this[int]").WithLocation(36, 9),
43087
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("I4.I3.this[long].get", "I3.this[long]").WithLocation(40, 9),
54051
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("I2.I1.P1.set", "I1.P1").WithLocation(9, 31 + implModifiers.Length),
54084
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("I2.I1.P1.get", "I1.P1").WithLocation(9, 26 + implModifiers.Length),
54117
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("I2.I1.P1.set", "I1.P1").WithLocation(9, 31 + implModifiers.Length),
54150
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("I2.I1.P1.get", "I1.P1").WithLocation(9, 26 + implModifiers.Length),
55880
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("I2.I1.P1.get", "I1.P1").WithLocation(9, 26 + implModifiers.Length),
56784
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("I2.I1.P1.set", "I1.P1").WithLocation(9, 26 + implModifiers.Length),
59085
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "P1").WithArguments("I2.I1.P1.remove", "I1.P1").WithLocation(9, 37 + implModifiers.Length),
59128
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "remove").WithArguments("I2.I1.P1.remove", "I1.P1").WithLocation(12, 9),
59164
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "P1").WithArguments("I2.I1.P1.add", "I1.P1").WithLocation(9, 37 + implModifiers.Length),
59207
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "add").WithArguments("I2.I1.P1.add", "I1.P1").WithLocation(11, 9),
60273
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("I2.I1.this[int].set", "I1.this[int]").WithLocation(9, 40),
60302
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("I2.I1.this[int].get", "I1.this[int]").WithLocation(9, 35),
60331
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("I2.I1.this[int].set", "I1.this[int]").WithLocation(9, 40),
60360
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("I2.I1.this[int].get", "I1.this[int]").WithLocation(9, 35),
61181
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("I2.I1.this[int].get", "I1.this[int]").WithLocation(9, 35),
61906
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("I2.I1.this[int].set", "I1.this[int]").WithLocation(9, 35),
Symbols\Metadata\MetadataMemberTests.cs (2)
588
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("Explicit.Interface.GetterIsGap.get", "Interface.GetterIsGap"),
591
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("Explicit.Interface.SetterIsGap.set", "Interface.SetterIsGap"),
Symbols\SymbolErrorTests.cs (1)
10510
new ErrorDescription { Code = (int)ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, Line = 19, Column = 13 });