122 references to ERR_ExtensionDisallowsMember
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2498or ErrorCode.ERR_ExtensionDisallowsMember
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4632diagnostics.Add(ErrorCode.ERR_ExtensionDisallowsMember, member.GetFirstLocation());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (105)
Semantics\ExtensionOperatorsTests.cs (2)
60Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "int").WithLocation(5, 41), 63Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "int").WithLocation(10, 41),
Semantics\ExtensionTests.cs (95)
769Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "extension").WithLocation(17, 9)); 2024Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "M").WithLocation(10, 16)); 2201Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "Property").WithLocation(5, 13)); 2383Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "Property").WithLocation(5, 20)); 2417Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(5, 13)); 2441Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(5, 13) 2468Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(5, 20) 2488Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "Nested").WithLocation(5, 15)); 2523Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "Nested").WithLocation(7, 22)); 2558Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "Nested").WithLocation(7, 15)); 2577Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "Extensions").WithLocation(3, 25)); 2605Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "Extensions").WithLocation(3, 26)); 2636Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "field").WithLocation(5, 31), 2665Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "i").WithLocation(3, 35)); 2701Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "E").WithLocation(9, 31), 2704Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "add").WithLocation(9, 35), 2707Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "remove").WithLocation(9, 43)); 3465Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "string").WithLocation(5, 41), 3495Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(5, 20), 3501Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(6, 20), 3504Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(10, 20)); 4697Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 20), 4703Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(11, 21), 4706Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(15, 22) 4813Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 20), 4819Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(11, 21), 4828Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(15, 22), 5073Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(9, 20)); 5100Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(9, 18), 5103Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(10, 20)); 15266Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "StaticType").WithLocation(9, 29)); 24543Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(17, 20) 24602Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(17, 23) 25011Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(21, 20) 27559Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(13, 20)); 27590Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(13, 20)); 27732Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(13, 20)); 27817Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(12, 20)); 27848Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(12, 20)); 27964Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(13, 20)); 30508Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(16, 13), 30565Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(6, 13), 30571Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 13) 31042Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(19, 13), 31054Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(43, 13), 31057Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(48, 13) 31144Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(27, 13), 31153Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(67, 13), 31156Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(72, 13) 31278Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 13), 31314Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 13), 31317Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(8, 13), 31323Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(9, 13), 31973Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 13)); 32006Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 13) 32098Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "Nested").WithLocation(6, 15), 32134Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(8, 13) 32664Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(57, 20), 32670Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(64, 20), 32676Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(73, 20), 32721Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(18, 20), 32727Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(23, 20) 33917Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(8, 13) 33957Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(8, 13), 33963Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(18, 13) 34005Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(8, 13), 34011Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(19, 13) 37598Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "Const").WithLocation(7, 26)); 38441Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "Nested").WithLocation(6, 22)); 42289Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(8, 23), 43120Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(16, 20), 43400Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "P").WithLocation(6, 29), 43406Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "P2").WithLocation(7, 29), 43415Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(8, 29), 43448Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 24)); 43478Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 29)); 43511Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(9, 21), 43544Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 20)); 43581Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(8, 22)); 43611Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 22)); 44398Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(5, 20), 44785Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "P").WithLocation(6, 13), 44833Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 21)); 44869Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(9, 23), 44875Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(10, 20), 44914Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(9, 32), 44920Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(10, 20), 44959Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(9, 31), 44965Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(10, 20), 46329Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(12, 18), 46332Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(17, 18), 46406Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(12, 22), 46409Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(17, 22), 51585Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "extension").WithLocation(6, 9), 51588Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "extension").WithLocation(13, 9));
Semantics\ExtensionTests2.cs (8)
7412Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "Nested").WithLocation(6, 22)); 7455Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "M").WithLocation(6, 16)); 7936Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "extension").WithLocation(6, 9)); 8496Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "extension").WithLocation(7, 9), 8607Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "Nested").WithLocation(8, 15), 25412Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "extension").WithLocation(5, 9)); 37333Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(5, 20)); 37357Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "int").WithLocation(5, 41));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (15)
Parsing\ExtensionsParsingTests.cs (15)
1972Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "extension").WithLocation(5, 9)); 2547Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "i").WithLocation(5, 19)); 2630Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "field").WithLocation(5, 19)); 2712Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "eventField").WithLocation(5, 35), 2715Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "eventField").WithLocation(5, 35), 2718Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "eventField").WithLocation(5, 35), 2799Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "Event").WithLocation(5, 35), 2802Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "add").WithLocation(5, 43), 2805Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "remove").WithLocation(5, 51)); 2987Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "Nested").WithLocation(5, 15)); 3050Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "Constructor").WithLocation(5, 9)); 3121Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "Constructor").WithLocation(5, 16)); 3189Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "Finalizer").WithLocation(5, 10)); 3258Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "field").WithLocation(5, 13), 3514Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "int").WithLocation(5, 41));