118 references to ERR_ExtensionDisallowsMember
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2493
or ErrorCode.
ERR_ExtensionDisallowsMember
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4625
diagnostics.Add(ErrorCode.
ERR_ExtensionDisallowsMember
, member.GetFirstLocation());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (101)
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 (95)
784
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "extension").WithLocation(17, 9));
2035
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "M").WithLocation(10, 16));
2212
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Property").WithLocation(5, 13));
2394
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Property").WithLocation(5, 20));
2428
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(5, 13));
2452
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(5, 13)
2479
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(5, 20)
2499
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Nested").WithLocation(5, 15));
2534
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Nested").WithLocation(7, 15));
2569
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Nested").WithLocation(7, 15));
2588
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Extensions").WithLocation(3, 25));
2616
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Extensions").WithLocation(3, 26));
2647
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "field").WithLocation(5, 31),
2676
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "i").WithLocation(3, 35));
2712
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "E").WithLocation(9, 31),
2715
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "add").WithLocation(9, 35),
2718
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "remove").WithLocation(9, 43));
3211
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "string").WithLocation(5, 41),
3241
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(5, 20),
3247
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(6, 20),
3250
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(10, 20));
4426
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 20),
4432
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(11, 21),
4435
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(15, 22)
4542
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 20),
4548
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(11, 21),
4557
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(15, 22),
4758
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(9, 20));
4785
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(9, 18),
4788
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(10, 20));
14776
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "StaticType").WithLocation(9, 29));
24037
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(17, 20)
24096
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(17, 23)
24505
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(21, 20)
27054
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(13, 20));
27085
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(13, 20));
27227
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(13, 20));
27312
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(12, 20));
27343
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(12, 20));
27459
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(13, 20));
30003
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(16, 13),
30060
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(6, 13),
30066
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 13)
30537
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(19, 13),
30549
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(43, 13),
30552
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(48, 13)
30639
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(27, 13),
30648
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(67, 13),
30651
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(72, 13)
30773
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 13),
30809
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 13),
30812
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(8, 13),
30818
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(9, 13),
31468
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 13));
31501
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 13)
31593
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Nested").WithLocation(6, 15),
31629
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(8, 13)
32159
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(57, 20),
32165
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(64, 20),
32171
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(73, 20),
32216
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(18, 20),
32222
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(23, 20)
33412
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(8, 13)
33452
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(8, 13),
33458
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(18, 13)
33500
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(8, 13),
33506
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(19, 13)
36876
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Const").WithLocation(7, 26));
37699
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Nested").WithLocation(6, 22));
41337
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(8, 23),
42144
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(16, 20),
42424
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "P").WithLocation(6, 29),
42430
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "P2").WithLocation(7, 29),
42439
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(8, 29),
42472
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 24));
42502
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 29));
42535
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(9, 21),
42568
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 20));
42605
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(8, 22));
42635
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 22));
43422
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(5, 20),
43809
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "P").WithLocation(6, 13),
43857
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 21));
43893
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(9, 23),
43899
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(10, 20),
43938
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(9, 32),
43944
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(10, 20),
43983
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(9, 31),
43989
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(10, 20),
45356
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(12, 18),
45359
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(17, 18),
45433
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(12, 22),
45436
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(17, 22),
50027
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "extension").WithLocation(6, 9),
50030
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "extension").WithLocation(13, 9));
Semantics\ExtensionTests2.cs (4)
5796
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Nested").WithLocation(6, 22));
5839
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "M").WithLocation(6, 16));
6320
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "extension").WithLocation(6, 9));
22620
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));