122 references to ERR_ExtensionDisallowsMember
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2492or 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)); 3200Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "string").WithLocation(5, 41), 3230Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(5, 20), 3236Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(6, 20), 3239Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(10, 20)); 4432Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 20), 4438Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(11, 21), 4441Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(15, 22) 4548Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 20), 4554Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(11, 21), 4563Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(15, 22), 4808Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(9, 20)); 4835Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(9, 18), 4838Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(10, 20)); 14971Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "StaticType").WithLocation(9, 29)); 24248Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(17, 20) 24307Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(17, 23) 24716Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(21, 20) 27264Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(13, 20)); 27295Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(13, 20)); 27437Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(13, 20)); 27522Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(12, 20)); 27553Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(12, 20)); 27669Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(13, 20)); 30213Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(16, 13), 30270Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(6, 13), 30276Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 13) 30747Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(19, 13), 30759Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(43, 13), 30762Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(48, 13) 30849Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(27, 13), 30858Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(67, 13), 30861Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(72, 13) 30983Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 13), 31019Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 13), 31022Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(8, 13), 31028Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(9, 13), 31678Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 13)); 31711Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 13) 31803Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "Nested").WithLocation(6, 15), 31839Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(8, 13) 32369Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(57, 20), 32375Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(64, 20), 32381Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(73, 20), 32426Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(18, 20), 32432Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(23, 20) 33622Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(8, 13) 33662Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(8, 13), 33668Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(18, 13) 33710Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(8, 13), 33716Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(19, 13) 37303Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "Const").WithLocation(7, 26)); 38146Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "Nested").WithLocation(6, 22)); 41994Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(8, 23), 42796Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(16, 20), 43076Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "P").WithLocation(6, 29), 43082Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "P2").WithLocation(7, 29), 43091Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(8, 29), 43124Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 24)); 43154Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 29)); 43187Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(9, 21), 43220Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 20)); 43257Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(8, 22)); 43287Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 22)); 44074Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(5, 20), 44461Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "P").WithLocation(6, 13), 44509Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(7, 21)); 44545Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(9, 23), 44551Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(10, 20), 44590Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(9, 32), 44596Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(10, 20), 44635Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(9, 31), 44641Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(10, 20), 46005Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(12, 18), 46008Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(17, 18), 46082Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(12, 22), 46085Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(17, 22), 50867Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "extension").WithLocation(6, 9), 50870Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "extension").WithLocation(13, 9));
Semantics\ExtensionTests2.cs (8)
5962Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "Nested").WithLocation(6, 22)); 6005Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "M").WithLocation(6, 16)); 6486Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "extension").WithLocation(6, 9)); 7046Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "extension").WithLocation(7, 9), 7157Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "Nested").WithLocation(8, 15), 23846Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "extension").WithLocation(5, 9)); 35767Diagnostic(ErrorCode.ERR_ExtensionDisallowsMember, "this").WithLocation(5, 20)); 35791Diagnostic(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));