65 references to ERR_MemberReserved
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (1)
695
or ErrorCode.
ERR_MemberReserved
Symbols\Source\SourceMemberContainerSymbol.cs (3)
2185
(int)ErrorCode.ERR_DuplicateNameInClass or (int)ErrorCode.
ERR_MemberReserved
) &&
4414
diagnostics.Add(ErrorCode.
ERR_MemberReserved
, GetAccessorOrPropertyLocation(propertySymbol, getNotSet), accessorName, containerForDiagnostics);
4453
diagnostics.Add(ErrorCode.
ERR_MemberReserved
, GetAccessorOrEventLocation(eventSymbol, isAdder), accessorName, containerForDiagnostics);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (25)
PartialEventsAndConstructorsTests.cs (2)
481
Diagnostic(ErrorCode.
ERR_MemberReserved
, "E").WithArguments("add_E", "C").WithLocation(3, 33),
484
Diagnostic(ErrorCode.
ERR_MemberReserved
, "E").WithArguments("remove_E", "C").WithLocation(3, 33));
Semantics\ExtensionTests.cs (20)
27845
Diagnostic(ErrorCode.
ERR_MemberReserved
, "1").WithArguments("get_P1", "Extensions").WithLocation(5, 26),
27848
Diagnostic(ErrorCode.
ERR_MemberReserved
, "4").WithArguments("get_P2", "Extensions").WithLocation(12, 26),
27851
Diagnostic(ErrorCode.
ERR_MemberReserved
, "1").WithArguments("get_P3", "Extensions2").WithLocation(20, 26),
27854
Diagnostic(ErrorCode.
ERR_MemberReserved
, "4").WithArguments("get_P4", "Extensions2").WithLocation(23, 26),
27857
Diagnostic(ErrorCode.
ERR_MemberReserved
, "P1").WithArguments("set_P1", "Extensions3").WithLocation(31, 20),
27860
Diagnostic(ErrorCode.
ERR_MemberReserved
, "P2").WithArguments("set_P2", "Extensions3").WithLocation(38, 20),
27863
Diagnostic(ErrorCode.
ERR_MemberReserved
, "P3").WithArguments("set_P3", "Extensions4").WithLocation(46, 20),
27866
Diagnostic(ErrorCode.
ERR_MemberReserved
, "P4").WithArguments("set_P4", "Extensions4").WithLocation(49, 20),
27872
Diagnostic(ErrorCode.
ERR_MemberReserved
, "1").WithArguments("get_Item", "Extensions5").WithLocation(57, 35),
27878
Diagnostic(ErrorCode.
ERR_MemberReserved
, "4").WithArguments("get_Item", "Extensions5").WithLocation(64, 36),
27884
Diagnostic(ErrorCode.
ERR_MemberReserved
, "1").WithArguments("get_Indexer", "Extensions6").WithLocation(73, 35)
28448
Diagnostic(ErrorCode.
ERR_MemberReserved
, "4").WithArguments("get_P1", "Extensions").WithLocation(8, 29),
28451
Diagnostic(ErrorCode.
ERR_MemberReserved
, "4").WithArguments("get_P2", "Extensions").WithLocation(10, 29)
28481
Diagnostic(ErrorCode.
ERR_MemberReserved
, "4").WithArguments("get_P1", "Extensions").WithLocation(8, 29),
28484
Diagnostic(ErrorCode.
ERR_MemberReserved
, "4").WithArguments("get_P2", "Extensions").WithLocation(10, 29)
28529
Diagnostic(ErrorCode.
ERR_MemberReserved
, "P1").WithArguments("get_P1", "Extensions").WithLocation(8, 23),
28532
Diagnostic(ErrorCode.
ERR_MemberReserved
, "P2").WithArguments("get_P2", "Extensions").WithLocation(11, 23)
28558
Diagnostic(ErrorCode.
ERR_MemberReserved
, "P1").WithArguments("set_P1", "Extensions").WithLocation(8, 23),
28561
Diagnostic(ErrorCode.
ERR_MemberReserved
, "P2").WithArguments("set_P2", "Extensions").WithLocation(11, 23)
29179
Diagnostic(ErrorCode.
ERR_MemberReserved
, "P").WithArguments("set_P", "Extensions").WithLocation(8, 11)
Semantics\RecordTests.cs (3)
1104
Diagnostic(ErrorCode.
ERR_MemberReserved
, "X").WithArguments("get_X", "C").WithLocation(2, 14),
1107
Diagnostic(ErrorCode.
ERR_MemberReserved
, "Y").WithArguments("set_Y", "C").WithLocation(2, 21));
10780
Diagnostic(ErrorCode.
ERR_MemberReserved
, "P").WithArguments("get_P", "C").WithLocation(9, 17));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\RecordStructTests.cs (2)
2106
Diagnostic(ErrorCode.
ERR_MemberReserved
, "X").WithArguments("get_X", "C").WithLocation(2, 21),
2109
Diagnostic(ErrorCode.
ERR_MemberReserved
, "Y").WithArguments("set_Y", "C").WithLocation(2, 28)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (34)
Symbols\CovariantReturnTests.cs (2)
4504
Diagnostic(ErrorCode.
ERR_MemberReserved
, "default(Pbject)").WithArguments("get_Prop", "Base<Pbject>").WithLocation(withPropertyDeclarationFirst ? 4 : 6, 35);
4522
Diagnostic(ErrorCode.
ERR_MemberReserved
, "default(Pbject)").WithArguments("get_Prop", "Base<Pbject>").WithLocation(withPropertyDeclarationFirst ? 4 : 6, 35)
Symbols\PartialPropertiesTests.cs (1)
336
Diagnostic(ErrorCode.
ERR_MemberReserved
, "get").WithArguments("get_P", "C").WithLocation(3, 28)
Symbols\Source\PropertyTests.cs (2)
2827
Diagnostic(ErrorCode.
ERR_MemberReserved
, "set").WithArguments("set_A", "Test.C"));
2833
Diagnostic(ErrorCode.
ERR_MemberReserved
, "set").WithArguments("put_A", "Test.C"));
Symbols\SymbolErrorTests.cs (29)
1221
Diagnostic(ErrorCode.
ERR_MemberReserved
, "get").WithArguments("get_P", "C").WithLocation(4, 20),
1222
Diagnostic(ErrorCode.
ERR_MemberReserved
, "set").WithArguments("set_P", "C").WithLocation(4, 25));
1252
Diagnostic(ErrorCode.
ERR_MemberReserved
, "get").WithArguments("get_P", "B").WithLocation(9, 9));
1283
Diagnostic(ErrorCode.
ERR_MemberReserved
, "get").WithArguments("get_P", "C").WithLocation(3, 32),
1284
Diagnostic(ErrorCode.
ERR_MemberReserved
, "P").WithArguments("set_P", "C").WithLocation(3, 28),
1285
Diagnostic(ErrorCode.
ERR_MemberReserved
, "Q").WithArguments("get_Q", "C").WithLocation(4, 31),
1286
Diagnostic(ErrorCode.
ERR_MemberReserved
, "set").WithArguments("set_Q", "C").WithLocation(4, 35),
1287
Diagnostic(ErrorCode.
ERR_MemberReserved
, "get").WithArguments("get_R", "C").WithLocation(5, 25),
1288
Diagnostic(ErrorCode.
ERR_MemberReserved
, "set").WithArguments("set_R", "C").WithLocation(5, 30),
1289
Diagnostic(ErrorCode.
ERR_MemberReserved
, "get").WithArguments("get_S", "C").WithLocation(6, 35),
1290
Diagnostic(ErrorCode.
ERR_MemberReserved
, "S").WithArguments("set_S", "C").WithLocation(6, 31),
1291
Diagnostic(ErrorCode.
ERR_MemberReserved
, "T").WithArguments("get_T", "C").WithLocation(7, 20),
1292
Diagnostic(ErrorCode.
ERR_MemberReserved
, "set").WithArguments("set_T", "C").WithLocation(7, 24),
1293
Diagnostic(ErrorCode.
ERR_MemberReserved
, "get").WithArguments("get_U", "C").WithLocation(8, 16),
1294
Diagnostic(ErrorCode.
ERR_MemberReserved
, "set").WithArguments("set_U", "C").WithLocation(8, 37));
1326
Diagnostic(ErrorCode.
ERR_MemberReserved
, "set").WithArguments("set_P", "A<T, U>").WithLocation(3, 23),
1327
Diagnostic(ErrorCode.
ERR_MemberReserved
, "set").WithArguments("set_P", "C").WithLocation(15, 29),
1328
Diagnostic(ErrorCode.
ERR_MemberReserved
, "set").WithArguments("set_Q", "C").WithLocation(16, 29),
1329
Diagnostic(ErrorCode.
ERR_MemberReserved
, "set").WithArguments("set_R", "C").WithLocation(17, 28),
1330
Diagnostic(ErrorCode.
ERR_MemberReserved
, "set").WithArguments("set_S", "C").WithLocation(18, 28));
1353
Diagnostic(ErrorCode.
ERR_MemberReserved
, "get").WithArguments("get_Q", "C").WithLocation(4, 16),
1354
Diagnostic(ErrorCode.
ERR_MemberReserved
, "set").WithArguments("set_Q", "C").WithLocation(4, 21),
1355
Diagnostic(ErrorCode.
ERR_MemberReserved
, "set").WithArguments("set_S", "C").WithLocation(6, 23));
1392
Diagnostic(ErrorCode.
ERR_MemberReserved
, "get").WithArguments("get_P", "C"),
1393
Diagnostic(ErrorCode.
ERR_MemberReserved
, "P").WithArguments("set_P", "C"));
1410
Diagnostic(ErrorCode.
ERR_MemberReserved
, "E").WithArguments("add_E", "C"),
1413
Diagnostic(ErrorCode.
ERR_MemberReserved
, "E").WithArguments("remove_E", "C"),
1433
Diagnostic(ErrorCode.
ERR_MemberReserved
, "add").WithArguments("add_E", "C"),
1436
Diagnostic(ErrorCode.
ERR_MemberReserved
, "remove").WithArguments("remove_E", "C"));