123 references to ERR_ExtensionDisallowsMember
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2499
or ErrorCode.
ERR_ExtensionDisallowsMember
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4687
diagnostics.Add(ErrorCode.
ERR_ExtensionDisallowsMember
, member.GetFirstLocation());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (105)
Semantics\ExtensionOperatorsTests.cs (2)
60
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "int").WithLocation(5, 41),
63
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "int").WithLocation(10, 41),
Semantics\ExtensionTests.cs (95)
769
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "extension").WithLocation(17, 9));
2024
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "M").WithLocation(10, 16));
2201
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Property").WithLocation(5, 13));
2383
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Property").WithLocation(5, 20));
2417
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(5, 13));
2441
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(5, 13)
2468
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(5, 20)
2488
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Nested").WithLocation(5, 15));
2523
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Nested").WithLocation(7, 22));
2558
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Nested").WithLocation(7, 15));
2577
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Extensions").WithLocation(3, 25));
2605
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Extensions").WithLocation(3, 26));
2636
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "field").WithLocation(5, 31),
2665
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "i").WithLocation(3, 35));
2701
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "E").WithLocation(9, 31),
2704
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "add").WithLocation(9, 35),
2707
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "remove").WithLocation(9, 43));
3465
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "string").WithLocation(5, 41),
3495
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(5, 20),
3501
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(6, 20),
3504
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(10, 20));
4697
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 20),
4703
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(11, 21),
4706
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(15, 22)
4813
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 20),
4819
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(11, 21),
4828
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(15, 22),
5073
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(9, 20));
5100
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(9, 18),
5103
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(10, 20));
15266
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "StaticType").WithLocation(9, 29));
24548
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(17, 20)
24607
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(17, 23)
25016
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(21, 20)
27564
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(13, 20));
27595
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(13, 20));
27737
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(13, 20));
27822
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(12, 20));
27853
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(12, 20));
27969
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(13, 20));
30513
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(16, 13),
30570
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(6, 13),
30576
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 13)
31047
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(19, 13),
31059
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(43, 13),
31062
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(48, 13)
31149
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(27, 13),
31158
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(67, 13),
31161
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(72, 13)
31283
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 13),
31319
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 13),
31322
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(8, 13),
31328
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(9, 13),
31978
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 13));
32011
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 13)
32103
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Nested").WithLocation(6, 15),
32139
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(8, 13)
32669
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(57, 20),
32675
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(64, 20),
32681
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(73, 20),
32726
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(18, 20),
32732
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(23, 20)
33922
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(8, 13)
33962
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(8, 13),
33968
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(18, 13)
34010
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(8, 13),
34016
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(19, 13)
37603
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Const").WithLocation(7, 26));
38446
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Nested").WithLocation(6, 22));
42294
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(8, 23),
43125
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(16, 20),
43405
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "P").WithLocation(6, 29),
43411
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "P2").WithLocation(7, 29),
43420
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(8, 29),
43453
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 24));
43483
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 29));
43516
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(9, 21),
43549
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 20));
43586
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(8, 22));
43616
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 22));
44403
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(5, 20),
44790
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "P").WithLocation(6, 13),
44838
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 21));
44874
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(9, 23),
44880
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(10, 20),
44919
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(9, 32),
44925
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(10, 20),
44964
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(9, 31),
44970
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(10, 20),
46334
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(12, 18),
46337
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(17, 18),
46411
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(12, 22),
46414
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(17, 22),
51590
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "extension").WithLocation(6, 9),
51593
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "extension").WithLocation(13, 9));
Semantics\ExtensionTests2.cs (8)
7412
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Nested").WithLocation(6, 22));
7455
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "M").WithLocation(6, 16));
7936
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "extension").WithLocation(6, 9));
8496
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "extension").WithLocation(7, 9),
8607
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Nested").WithLocation(8, 15),
25412
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "extension").WithLocation(5, 9));
37333
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(5, 20));
37357
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "int").WithLocation(5, 41));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (16)
Parsing\ExtensionsParsingTests.cs (16)
1972
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "extension").WithLocation(5, 9));
2547
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "i").WithLocation(5, 19));
2630
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "field").WithLocation(5, 19));
2639
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "field").WithLocation(5, 19),
2725
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "eventField").WithLocation(5, 35),
2728
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "eventField").WithLocation(5, 35),
2731
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "eventField").WithLocation(5, 35),
2812
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Event").WithLocation(5, 35),
2815
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "add").WithLocation(5, 43),
2818
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "remove").WithLocation(5, 51));
3000
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Nested").WithLocation(5, 15));
3063
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Constructor").WithLocation(5, 9));
3134
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Constructor").WithLocation(5, 16));
3202
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Finalizer").WithLocation(5, 10));
3271
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "field").WithLocation(5, 13),
3527
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "int").WithLocation(5, 41));