35 references to ERR_ExplicitPropertyMissingAccessor
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
896
case ErrorCode.
ERR_ExplicitPropertyMissingAccessor
:
Symbols\Source\SourcePropertySymbolBase.cs (1)
949
diagnostics.Add(ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, this.Location, this, otherAccessor);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (13)
Semantics\InheritanceBindingTests.cs (8)
5794
new ErrorDescription { Code = (int)ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, Line = 19, Column = 19 }, //1
5795
new ErrorDescription { Code = (int)ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, Line = 20, Column = 19 }, //2
5797
new ErrorDescription { Code = (int)ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, Line = 24, Column = 19 }, //4
5801
new ErrorDescription { Code = (int)ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, Line = 27, Column = 19 }, //7
5850
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, "this").WithArguments("Class.Interface.this[int, int, int, string]", "Interface.this[int, int, int, string].set").WithLocation(19, 19),
5853
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, "this").WithArguments("Class.Interface.this[int, int, string, int]", "Interface.this[int, int, string, int].get").WithLocation(20, 19),
5856
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, "this").WithArguments("Class.Interface.this[int, string, int, string]", "Interface.this[int, string, int, string].get").WithLocation(24, 19),
5868
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, "this").WithArguments("Class.Interface.this[int, string, string, string]", "Interface.this[int, string, string, string].set").WithLocation(27, 19),
Semantics\InitOnlyMemberTests.cs (1)
2236
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, "Property").WithArguments("DerivedGetterOnly.I.Property", "I.Property.init").WithLocation(12, 14),
Semantics\NullableReferenceTypesTests.cs (4)
15934
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, "P1").WithArguments("B.A.P1", "A.P1.set").WithLocation(11, 20),
15937
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, "P2").WithArguments("B.A.P2", "A.P2.set").WithLocation(12, 20)
16073
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, "P1").WithArguments("C.B.P1", "B.P1.get").WithLocation(11, 21),
16076
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, "P2").WithArguments("C.B.P2", "B.P2.get").WithLocation(12, 21)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (20)
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (1)
832
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, "ReadOnlyProp").WithArguments("CSIPropImpl.IProp.ReadOnlyProp", "IProp.ReadOnlyProp.get"),
Symbols\DefaultInterfaceImplementationTests.cs (14)
37986
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, "M1").WithArguments("I2.I1.M1", "I1.M1.set").WithLocation(10, 12),
37989
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, "M2").WithArguments("I2.I1.M2", "I1.M2.get").WithLocation(14, 12),
38077
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, "M1").WithArguments("I2.I1.M1", "I1.M1.set").WithLocation(10, 19),
38080
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, "M2").WithArguments("I2.I1.M2", "I1.M2.get").WithLocation(14, 19),
42887
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, "this").WithArguments("I2.I1.this[int]", "I1.this[int].set").WithLocation(10, 12),
42890
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, "this").WithArguments("I2.I1.this[long]", "I1.this[long].get").WithLocation(14, 12),
53794
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, "P1").WithArguments("I2.I1.P1", "I1.P1.set").WithLocation(9, 21 + implModifiers.Length),
53827
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, "P1").WithArguments("I2.I1.P1", "I1.P1.get").WithLocation(9, 21 + implModifiers.Length),
55686
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, "P1").WithArguments("I2.I1.P1", "I1.P1.set").WithLocation(9, 21 + implModifiers.Length),
56590
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, "P1").WithArguments("I2.I1.P1", "I1.P1.get").WithLocation(9, 21 + implModifiers.Length),
60024
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, "this").WithArguments("I2.I1.this[int]", "I1.this[int].set").WithLocation(9, 21),
60053
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, "this").WithArguments("I2.I1.this[int]", "I1.this[int].get").WithLocation(9, 21),
60987
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, "this").WithArguments("I2.I1.this[int]", "I1.this[int].set").WithLocation(9, 21),
61712
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, "this").WithArguments("I2.I1.this[int]", "I1.this[int].get").WithLocation(9, 21),
Symbols\StaticAbstractMembersInInterfacesTests.cs (4)
23668
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, "M01").WithArguments("C1.I1.M01", "I1.M01.set").WithLocation(4, 18)
23932
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, "M01").WithArguments("C1.I1.M01", "I1.M01.get").WithLocation(4, 18)
24020
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, "M01").WithArguments("C1.I1.M01", "I1.M01.get").WithLocation(4, 18)
24284
Diagnostic(ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, "M01").WithArguments("C1.I1.M01", "I1.M01.set").WithLocation(4, 18)
Symbols\SymbolErrorTests.cs (1)
10391
new ErrorDescription { Code = (int)ErrorCode.
ERR_ExplicitPropertyMissingAccessor
, Line = 12, Column = 12 });