123 references to ERR_ExtensionDisallowsMember
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2499or ErrorCode.ERR_ExtensionDisallowsMember
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4687diagnostics.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)); 24548Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(17, 20) 24607Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(17, 23) 25016Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(21, 20) 27564Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(13, 20)); 27595Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(13, 20)); 27737Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(13, 20)); 27822Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(12, 20)); 27853Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(12, 20)); 27969Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(13, 20)); 30513Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(16, 13), 30570Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(6, 13), 30576Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 13) 31047Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(19, 13), 31059Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(43, 13), 31062Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(48, 13) 31149Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(27, 13), 31158Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(67, 13), 31161Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(72, 13) 31283Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 13), 31319Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 13), 31322Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(8, 13), 31328Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(9, 13), 31978Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 13)); 32011Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 13) 32103Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "Nested").WithLocation(6, 15), 32139Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(8, 13) 32669Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(57, 20), 32675Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(64, 20), 32681Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(73, 20), 32726Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(18, 20), 32732Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(23, 20) 33922Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(8, 13) 33962Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(8, 13), 33968Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(18, 13) 34010Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(8, 13), 34016Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(19, 13) 37603Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "Const").WithLocation(7, 26)); 38446Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "Nested").WithLocation(6, 22)); 42294Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(8, 23), 43125Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(16, 20), 43405Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "P").WithLocation(6, 29), 43411Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "P2").WithLocation(7, 29), 43420Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(8, 29), 43453Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 24)); 43483Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 29)); 43516Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(9, 21), 43549Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 20)); 43586Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(8, 22)); 43616Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 22)); 44403Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(5, 20), 44790Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "P").WithLocation(6, 13), 44838Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 21)); 44874Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(9, 23), 44880Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(10, 20), 44919Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(9, 32), 44925Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(10, 20), 44964Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(9, 31), 44970Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(10, 20), 46334Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(12, 18), 46337Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(17, 18), 46411Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(12, 22), 46414Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(17, 22), 51590Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "extension").WithLocation(6, 9), 51593Diagnostic(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 (16)
Parsing\ExtensionsParsingTests.cs (16)
1972Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "extension").WithLocation(5, 9)); 2547Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "i").WithLocation(5, 19)); 2630Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "field").WithLocation(5, 19)); 2639Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "field").WithLocation(5, 19), 2725Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "eventField").WithLocation(5, 35), 2728Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "eventField").WithLocation(5, 35), 2731Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "eventField").WithLocation(5, 35), 2812Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "Event").WithLocation(5, 35), 2815Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "add").WithLocation(5, 43), 2818Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "remove").WithLocation(5, 51)); 3000Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "Nested").WithLocation(5, 15)); 3063Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "Constructor").WithLocation(5, 9)); 3134Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "Constructor").WithLocation(5, 16)); 3202Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "Finalizer").WithLocation(5, 10)); 3271Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "field").WithLocation(5, 13), 3527Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "int").WithLocation(5, 41));