109 references to ERR_ExtensionDisallowsMember
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2493
or ErrorCode.
ERR_ExtensionDisallowsMember
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4653
diagnostics.Add(ErrorCode.
ERR_ExtensionDisallowsMember
, member.GetFirstLocation());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (92)
Semantics\ExtensionOperatorsTests.cs (2)
59
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "int").WithLocation(5, 41),
62
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "int").WithLocation(10, 41),
Semantics\ExtensionTests.cs (86)
732
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "extension").WithLocation(17, 9));
1910
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "M").WithLocation(10, 16));
2064
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Property").WithLocation(5, 13));
2223
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Property").WithLocation(5, 20));
2258
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(5, 13));
2283
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(5, 13)
2310
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(5, 20)
2330
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Nested").WithLocation(5, 15));
2365
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Nested").WithLocation(7, 15));
2400
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Nested").WithLocation(7, 15));
2419
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Extensions").WithLocation(3, 25));
2447
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Extensions").WithLocation(3, 26));
2478
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "field").WithLocation(5, 31),
2507
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "i").WithLocation(3, 35));
2543
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "E").WithLocation(9, 31),
2546
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "add").WithLocation(9, 35),
2549
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "remove").WithLocation(9, 43));
3042
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "string").WithLocation(5, 41),
3072
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(5, 20),
3078
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(6, 20),
3081
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(10, 20));
4252
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 20),
4258
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(11, 21),
4261
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(15, 22)
4318
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 20),
4324
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(11, 21),
4333
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(15, 22),
4534
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(9, 20));
4561
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(9, 18),
4564
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(10, 20));
13788
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "StaticType").WithLocation(9, 29));
22977
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(13, 20));
23008
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(13, 20));
23150
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(13, 20));
23235
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(12, 20));
23266
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(12, 20));
23382
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(13, 20));
25713
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(16, 13),
25770
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(6, 13),
25776
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 13)
26247
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(19, 13),
26259
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(43, 13),
26262
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(48, 13)
26349
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(27, 13),
26358
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(67, 13),
26361
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(72, 13)
26483
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 13),
26519
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 13),
26522
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(8, 13),
26528
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(9, 13),
27178
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 13));
27211
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 13)
27303
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Nested").WithLocation(6, 15),
27339
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(8, 13)
27869
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(57, 20),
27875
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(64, 20),
27881
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(73, 20),
27926
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(18, 20),
27932
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(23, 20)
29007
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(8, 13)
29047
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(8, 13),
29053
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(18, 13)
29095
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(8, 13),
29101
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(19, 13)
32411
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Const").WithLocation(7, 26));
33146
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Nested").WithLocation(6, 22));
36252
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(8, 23),
37059
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(16, 20),
37293
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "P").WithLocation(6, 29),
37299
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "P2").WithLocation(7, 29),
37308
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(8, 29),
37341
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 24));
37371
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 29));
37404
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(9, 21),
37437
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 20));
37474
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(8, 22));
37504
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 22));
38146
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(5, 20),
38475
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "P").WithLocation(6, 13),
38523
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 21));
38559
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(9, 23),
38565
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(10, 20),
38604
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(9, 32),
38610
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(10, 20),
38649
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(9, 31),
38655
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(10, 20),
Semantics\ExtensionTests2.cs (4)
4668
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Nested").WithLocation(6, 22));
4711
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "M").WithLocation(6, 16));
5192
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "extension").WithLocation(6, 9));
7015
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "extension").WithLocation(5, 9));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (15)
Parsing\ExtensionsParsingTests.cs (15)
1573
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "extension").WithLocation(5, 9));
2148
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "i").WithLocation(5, 19));
2231
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "field").WithLocation(5, 19));
2313
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "eventField").WithLocation(5, 35),
2316
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "eventField").WithLocation(5, 35),
2319
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "eventField").WithLocation(5, 35),
2400
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Event").WithLocation(5, 35),
2403
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "add").WithLocation(5, 43),
2406
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "remove").WithLocation(5, 51));
2588
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Nested").WithLocation(5, 15));
2651
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Constructor").WithLocation(5, 9));
2722
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Constructor").WithLocation(5, 16));
2790
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Finalizer").WithLocation(5, 10));
2859
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "field").WithLocation(5, 13),
3115
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "int").WithLocation(5, 41));