65 references to ERR_ExplicitPropertyAddingAccessor
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
895
case ErrorCode.
ERR_ExplicitPropertyAddingAccessor
:
Symbols\Source\SourceEventSymbol.cs (1)
772
diagnostics.Add(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, thisAccessor.Locations[0], thisAccessor, explicitlyImplementedEvent);
Symbols\Source\SourcePropertySymbolBase.cs (1)
953
diagnostics.Add(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, thisAccessor.Locations[0], 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)
2159
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("DerivedWithInitAndGetter.I.Property.get", "I.Property").WithLocation(12, 25),
2194
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("DerivedWithInitAndGetter.I.Property.get", "I.Property").WithLocation(16, 25)
2239
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("DerivedGetterOnly.I.Property.get", "I.Property").WithLocation(12, 25)
Semantics\NullableReferenceTypesTests.cs (8)
15879
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("B.A.P1.set", "A.P1").WithLocation(11, 30),
15882
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("B.A.P2.set", "A.P2").WithLocation(12, 30)
15962
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("B.A.P1.set", "A.P1").WithLocation(11, 30),
15965
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("B.A.P2.set", "A.P2").WithLocation(12, 30)
15990
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("C.B.P1.get", "B.P1").WithLocation(11, 26),
15993
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("C.B.P2.get", "B.P2").WithLocation(12, 26)
16039
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("C.B.P1.get", "B.P1").WithLocation(11, 26),
16042
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)
19997
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("Test1.I1.P3.get", "I1.P3").WithLocation(21, 9),
20000
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("Test1.I1.P4.set", "I1.P4").WithLocation(28, 9),
20003
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("ITest1.I1.P3.get", "I1.P3").WithLocation(36, 9),
20006
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("ITest1.I1.P4.set", "I1.P4").WithLocation(43, 9),
20009
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("I2.Test3.I2.P5.get", "I2.P5").WithLocation(65, 13),
20012
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("I2.Test3.I2.P6.set", "I2.P6").WithLocation(72, 13),
20015
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("I2.ITest3.I2.P5.get", "I2.P5").WithLocation(80, 13),
20018
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("I2.ITest3.I2.P6.set", "I2.P6").WithLocation(87, 13)
26566
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("Test1.I1.this[short].get", "I1.this[short]").WithLocation(21, 9),
26569
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("Test1.I1.this[int].set", "I1.this[int]").WithLocation(28, 9),
26572
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("ITest1.I1.this[short].get", "I1.this[short]").WithLocation(36, 9),
26575
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("ITest1.I1.this[int].set", "I1.this[int]").WithLocation(43, 9),
26578
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("I2.Test3.I2.this[short].get", "I2.this[short]").WithLocation(65, 13),
26581
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("I2.Test3.I2.this[int].set", "I2.this[int]").WithLocation(72, 13),
26584
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("I2.ITest3.I2.this[short].get", "I2.this[short]").WithLocation(80, 13),
26587
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("I2.ITest3.I2.this[int].set", "I2.this[int]").WithLocation(87, 13)
37998
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("I4.I3.M1.set", "I3.M1").WithLocation(36, 9),
38001
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("I4.I3.M2.get", "I3.M2").WithLocation(40, 9),
38089
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("I4.I3.M1.set", "I3.M1").WithLocation(36, 9),
38092
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("I4.I3.M2.get", "I3.M2").WithLocation(40, 9)
42899
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("I4.I3.this[int].set", "I3.this[int]").WithLocation(36, 9),
42902
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("I4.I3.this[long].get", "I3.this[long]").WithLocation(40, 9),
53860
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("I2.I1.P1.set", "I1.P1").WithLocation(9, 31 + implModifiers.Length),
53893
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("I2.I1.P1.get", "I1.P1").WithLocation(9, 26 + implModifiers.Length),
53926
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("I2.I1.P1.set", "I1.P1").WithLocation(9, 31 + implModifiers.Length),
53959
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("I2.I1.P1.get", "I1.P1").WithLocation(9, 26 + implModifiers.Length),
55689
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("I2.I1.P1.get", "I1.P1").WithLocation(9, 26 + implModifiers.Length),
56593
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("I2.I1.P1.set", "I1.P1").WithLocation(9, 26 + implModifiers.Length),
58894
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "P1").WithArguments("I2.I1.P1.remove", "I1.P1").WithLocation(9, 37 + implModifiers.Length),
58937
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "remove").WithArguments("I2.I1.P1.remove", "I1.P1").WithLocation(12, 9),
58973
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "P1").WithArguments("I2.I1.P1.add", "I1.P1").WithLocation(9, 37 + implModifiers.Length),
59016
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "add").WithArguments("I2.I1.P1.add", "I1.P1").WithLocation(11, 9),
60082
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("I2.I1.this[int].set", "I1.this[int]").WithLocation(9, 40),
60111
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("I2.I1.this[int].get", "I1.this[int]").WithLocation(9, 35),
60140
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("I2.I1.this[int].set", "I1.this[int]").WithLocation(9, 40),
60169
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("I2.I1.this[int].get", "I1.this[int]").WithLocation(9, 35),
60990
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("I2.I1.this[int].get", "I1.this[int]").WithLocation(9, 35),
61715
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("I2.I1.this[int].set", "I1.this[int]").WithLocation(9, 35),
Symbols\Metadata\MetadataMemberTests.cs (2)
584
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "get").WithArguments("Explicit.Interface.GetterIsGap.get", "Interface.GetterIsGap"),
587
Diagnostic(ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, "set").WithArguments("Explicit.Interface.SetterIsGap.set", "Interface.SetterIsGap"),
Symbols\SymbolErrorTests.cs (1)
10367
new ErrorDescription { Code = (int)ErrorCode.
ERR_ExplicitPropertyAddingAccessor
, Line = 19, Column = 13 });