112 references to ERR_ExtensionDisallowsMember
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2493
or ErrorCode.
ERR_ExtensionDisallowsMember
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4680
diagnostics.Add(ErrorCode.
ERR_ExtensionDisallowsMember
, member.GetFirstLocation());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (95)
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 (89)
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));
4255
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 20),
4261
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(11, 21),
4264
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(15, 22)
4321
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 20),
4327
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(11, 21),
4336
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(15, 22),
4537
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(9, 20));
4564
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(9, 18),
4567
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(10, 20));
13942
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "StaticType").WithLocation(9, 29));
22518
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(17, 20)
22577
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(17, 23)
22964
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(21, 20)
25529
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(13, 20));
25560
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(13, 20));
25702
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(13, 20));
25787
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(12, 20));
25818
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(12, 20));
25934
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(13, 20));
28370
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(16, 13),
28427
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(6, 13),
28433
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 13)
28904
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(19, 13),
28916
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(43, 13),
28919
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(48, 13)
29006
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(27, 13),
29015
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(67, 13),
29018
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(72, 13)
29140
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 13),
29176
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 13),
29179
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(8, 13),
29185
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(9, 13),
29835
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 13));
29868
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 13)
29960
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Nested").WithLocation(6, 15),
29996
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(8, 13)
30526
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(57, 20),
30532
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(64, 20),
30538
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(73, 20),
30583
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(18, 20),
30589
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(23, 20)
31664
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(8, 13)
31704
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(8, 13),
31710
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(18, 13)
31752
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(8, 13),
31758
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(19, 13)
35097
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Const").WithLocation(7, 26));
35882
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Nested").WithLocation(6, 22));
39520
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(8, 23),
40327
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(16, 20),
40561
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "P").WithLocation(6, 29),
40567
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "P2").WithLocation(7, 29),
40576
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(8, 29),
40609
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 24));
40639
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 29));
40672
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(9, 21),
40705
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 20));
40742
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(8, 22));
40772
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 22));
41414
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(5, 20),
41743
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "P").WithLocation(6, 13),
41791
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(7, 21));
41827
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(9, 23),
41833
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(10, 20),
41872
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(9, 32),
41878
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(10, 20),
41917
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(9, 31),
41923
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "this").WithLocation(10, 20),
Semantics\ExtensionTests2.cs (4)
4831
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "Nested").WithLocation(6, 22));
4874
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "M").WithLocation(6, 16));
5355
Diagnostic(ErrorCode.
ERR_ExtensionDisallowsMember
, "extension").WithLocation(6, 9));
11888
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));