355 references to ERR_NoSuchMemberOrExtension
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Expressions.cs (1)
7004
Error(diagnostics, ErrorCode.
ERR_NoSuchMemberOrExtension
, name, boundLeft.Type, plainName);
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
757
ErrorCode.
ERR_NoSuchMemberOrExtension
,
Errors\ErrorFacts.cs (1)
1119
case ErrorCode.
ERR_NoSuchMemberOrExtension
:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (68)
CodeGen\CodeGenAsyncMainTests.cs (3)
344
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Task").WithArguments("System.Threading.Tasks.Task", "GetAwaiter").WithLocation(10, 12),
387
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Task<int>").WithArguments("System.Threading.Tasks.Task<int>", "GetAwaiter").WithLocation(6, 12),
427
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Task").WithArguments("System.Threading.Tasks.Task", "GetAwaiter").WithLocation(6, 12),
CodeGen\CodeGenAwaitForeachTests.cs (4)
2224
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "new C()").WithArguments("C.Awaitable", "GetAwaiter").WithLocation(7, 33)
2315
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "new C()").WithArguments("C.Awaiter", "GetResult").WithLocation(7, 33)
2386
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "new C()").WithArguments("int", "GetAwaiter").WithLocation(7, 33)
5045
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "new C()").WithArguments("int", "GetAwaiter").WithLocation(7, 33)
CodeGen\CodeGenAwaitUsingTests.cs (1)
1981
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "var x = new C()").WithArguments("int", "GetAwaiter").WithLocation(6, 22)
CodeGen\CodeGenFunctionPointersTests.cs (2)
7429
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(a, b)").WithArguments("object", "Deconstruct").WithLocation(6, 25),
7435
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(var c, var d)").WithArguments("object", "Deconstruct").WithLocation(7, 21),
CodeGen\CodeGenRefConditionalOperatorTests.cs (1)
1202
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Bob").WithArguments("(int Alice, int)", "Bob").WithLocation(9, 32)
CodeGen\CodeGenScriptTests.cs (1)
607
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "").WithArguments("System.Threading.Tasks.Task<object>", "GetAwaiter").WithLocation(1, 1),
CodeGen\CodeGenTupleTest.cs (55)
307
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "a").WithArguments("(int, string)", "a").WithLocation(16, 12),
310
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "b").WithArguments("(int, string)", "b").WithLocation(17, 12)
3734
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "a").WithArguments("(int, int)", "a").WithLocation(9, 41)
3883
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "b").WithArguments("(int a, int)", "b").WithLocation(9, 32)
4829
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "i1").WithArguments("(int, int)", "i1").WithLocation(19, 38)
5065
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "a").WithArguments("(int, int)", "a").WithLocation(21, 37)
5109
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "a").WithArguments("(int, int)", "a").WithLocation(22, 37)
5147
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "a").WithArguments("(int, int)", "a").WithLocation(14, 37),
5150
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "a").WithArguments("(int, int)", "a").WithLocation(15, 38)
5191
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "c").WithArguments("((int, int), int)", "c").WithLocation(12, 37),
12068
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "a4").WithArguments("(int, int)", "a4").WithLocation(8, 42),
12071
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "b4").WithArguments("(int, int)", "b4").WithLocation(9, 42),
12074
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "c4").WithArguments("(int, int)", "c4").WithLocation(10, 42),
12077
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "d4").WithArguments("(int, int)", "d4").WithLocation(11, 42),
12080
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "e4").WithArguments("(int, int)", "e4").WithLocation(12, 42),
12083
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "f4").WithArguments("(int, int)", "f4").WithLocation(13, 42),
12086
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "g4").WithArguments("(int, int)", "g4").WithLocation(14, 42),
12089
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "h4").WithArguments("(int, int)", "h4").WithLocation(15, 42),
12092
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "i4").WithArguments("(int, int)", "i4").WithLocation(16, 42)
12353
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item10").WithArguments("(int, int, int, int, int, int, int, int, int)", "Item10").WithLocation(8, 42),
12356
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item11").WithArguments("(int, int, int, int, int, int, int, int, int)", "Item11").WithLocation(9, 42),
12359
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item12").WithArguments("(int, int, int, int, int, int, int, int, int)", "Item12").WithLocation(10, 42),
12362
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item13").WithArguments("(int, int, int, int, int, int, int, int, int)", "Item13").WithLocation(11, 42),
12365
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item14").WithArguments("(int, int, int, int, int, int, int, int, int)", "Item14").WithLocation(12, 42),
12368
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item15").WithArguments("(int, int, int, int, int, int, int, int, int)", "Item15").WithLocation(13, 42),
12371
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item16").WithArguments("(int, int, int, int, int, int, int, int, int)", "Item16").WithLocation(14, 42),
12374
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item3").WithArguments("(int, int)", "Item3").WithLocation(16, 47),
12377
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item4").WithArguments("(int, int)", "Item4").WithLocation(17, 47),
12380
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item5").WithArguments("(int, int)", "Item5").WithLocation(18, 47),
12383
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item6").WithArguments("(int, int)", "Item6").WithLocation(19, 47),
12386
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item7").WithArguments("(int, int)", "Item7").WithLocation(20, 47),
12389
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item8").WithArguments("(int, int)", "Item8").WithLocation(21, 47),
12392
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item9").WithArguments("(int, int)", "Item9").WithLocation(22, 47),
12395
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item10").WithArguments("(int, int)", "Item10").WithLocation(23, 47),
12398
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item11").WithArguments("(int, int)", "Item11").WithLocation(24, 47),
12401
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item12").WithArguments("(int, int)", "Item12").WithLocation(25, 47),
12404
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item13").WithArguments("(int, int)", "Item13").WithLocation(26, 47),
12407
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item14").WithArguments("(int, int)", "Item14").WithLocation(27, 47),
12410
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item15").WithArguments("(int, int)", "Item15").WithLocation(28, 47),
12413
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item16").WithArguments("(int, int)", "Item16").WithLocation(29, 47)
14423
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item8").WithArguments("Test1<(int, int)>", "Item8").WithLocation(14, 37),
14426
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item8").WithArguments("ITest2<(int, int)>", "Item8").WithLocation(17, 37)
14516
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item8").WithArguments("System.ValueTuple<int, int, int, int, int, int, int, (int, int, int, int, int, int, int, int, int)>", "Item8").WithLocation(7, 37),
14519
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item9").WithArguments("System.ValueTuple<int, int, int, int, int, int, int, (int, int, int, int, int, int, int, int, int)>", "Item9").WithLocation(8, 37)
16179
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int, int)").WithArguments("object", "Deconstruct").WithLocation(6, 18),
16229
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int a, int b)").WithArguments("object", "Deconstruct").WithLocation(6, 18),
16253
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(1, 2)").WithArguments("object", "Deconstruct").WithLocation(6, 18),
16279
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int, int)").WithArguments("object", "Deconstruct").WithLocation(7, 18),
16310
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(1, 1)").WithArguments("object", "Deconstruct").WithLocation(7, 18),
16336
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(1, 1)").WithArguments("object", "Deconstruct").WithLocation(7, 18),
16458
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, @"await (7, ""7"")").WithArguments("(int, string)", "GetAwaiter").WithLocation(20, 9),
19652
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "b").WithArguments("(int a, int)", "b").WithLocation(8, 32),
19655
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "c").WithArguments("(int a, int)", "c").WithLocation(9, 32),
22726
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "first").WithArguments("string", "first").WithLocation(7, 37),
22729
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "second").WithArguments("string", "second").WithLocation(7, 48),
PrivateProtected.cs (1)
796
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "SomeExtension").WithArguments("string", "SomeExtension").WithLocation(11, 11)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (48)
Attributes\AttributeTests.cs (1)
8471
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("object", "M"));
Attributes\InternalsVisibleToAndStrongNameTests.cs (2)
815
c.VerifyDiagnostics(Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Goo").WithArguments("C", "Goo"));
2332
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Bar").WithArguments("object", "Bar").WithLocation(8, 20),
Emit\NumericIntPtrTests.cs (12)
674
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("nint", "P").WithLocation(16, 15),
677
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("nint", "F").WithLocation(17, 15),
680
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("nuint", "P").WithLocation(23, 15),
683
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("nuint", "F").WithLocation(24, 15),
686
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("nint", "P").WithLocation(30, 15),
689
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("nint", "F").WithLocation(31, 15),
692
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("nuint", "P").WithLocation(37, 15),
695
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("nuint", "F").WithLocation(38, 15));
879
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F2").WithArguments("nint", "F2").WithLocation(7, 15),
885
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F2").WithArguments("nuint", "F2").WithLocation(13, 15),
891
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F2").WithArguments("nint", "F2").WithLocation(19, 15),
897
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F2").WithArguments("nuint", "F2").WithLocation(25, 15));
Semantics\PatternMatchingTests_ListPatterns.cs (2)
4008
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Value").WithArguments("int", "Value").WithLocation(14, 19),
4014
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Value").WithArguments("int", "Value").WithLocation(16, 16)
Semantics\PatternMatchingTests2.cs (5)
863
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(x, y)").WithArguments("N.var", "Deconstruct").WithLocation(10, 36),
872
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(x, y)").WithArguments("N.var", "Deconstruct").WithLocation(11, 37),
1161
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(1, 2)").WithArguments("object", "Deconstruct").WithLocation(8, 18),
2190
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(a: 1)").WithArguments("C", "Deconstruct").WithLocation(4, 21),
2212
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(a: 1)").WithArguments("C", "Deconstruct").WithLocation(4, 22),
Semantics\PatternMatchingTests3.cs (1)
1928
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(var x1, var x2)").WithArguments("object", "Deconstruct").WithLocation(9, 32),
Semantics\PatternMatchingTests4.cs (8)
245
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(3, 4, 5)").WithArguments("object", "Deconstruct").WithLocation(7, 32),
280
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(3, 4, 5)").WithArguments("object", "Deconstruct").WithLocation(15, 32),
571
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(3, 4)").WithArguments("T", "Deconstruct").WithLocation(13, 32),
577
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(3, 4, 5)").WithArguments("T", "Deconstruct").WithLocation(14, 32),
583
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(3, 0, 5)").WithArguments("T", "Deconstruct").WithLocation(15, 32),
589
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(3, 4, 5, 6)").WithArguments("T", "Deconstruct").WithLocation(16, 32),
871
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(3, 4, 5)").WithArguments("object", "Deconstruct").WithLocation(17, 32),
908
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(3, 4, 5)").WithArguments("object", "Deconstruct").WithLocation(17, 32),
Semantics\PatternSwitchTests.cs (17)
1690
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int, int)").WithArguments("object", "Deconstruct").WithLocation(21, 18),
1702
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int x, int y)").WithArguments("object", "Deconstruct").WithLocation(22, 18),
1708
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int, int)").WithArguments("object", "Deconstruct").WithLocation(23, 18),
1720
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int a, int b)").WithArguments("object", "Deconstruct").WithLocation(24, 18),
1726
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(long, long)").WithArguments("object", "Deconstruct").WithLocation(25, 18),
1738
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int, int)").WithArguments("object", "Deconstruct").WithLocation(30, 18),
1750
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(long, long)").WithArguments("object", "Deconstruct").WithLocation(32, 18),
1762
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(System.Int32, System.Int32)").WithArguments("object", "Deconstruct").WithLocation(37, 18),
1768
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(System.Int64, System.Int64)").WithArguments("object", "Deconstruct").WithLocation(39, 18),
1774
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int, int)").WithArguments("object", "Deconstruct").WithLocation(43, 22),
1786
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int x, int y)").WithArguments("object", "Deconstruct").WithLocation(44, 22),
1792
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int, int)").WithArguments("object", "Deconstruct").WithLocation(45, 22),
1804
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int a, int b)").WithArguments("object", "Deconstruct").WithLocation(46, 22),
1810
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(System.Int32, System.Int32)").WithArguments("object", "Deconstruct").WithLocation(49, 22),
1816
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(System.Int32 x, System.Int32 y)").WithArguments("object", "Deconstruct").WithLocation(50, 22),
1822
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(System.Int32, System.Int32)").WithArguments("object", "Deconstruct").WithLocation(51, 22),
1828
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(System.Int32 a, System.Int32 b)").WithArguments("object", "Deconstruct").WithLocation(52, 22),
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (1)
EvaluationContext.cs (1)
505
case ErrorCode.
ERR_NoSuchMemberOrExtension
: // Commonly, but not always, caused by absence of System.Core.
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler.UnitTests (1)
MissingAssemblyTests.cs (1)
51
Assert.Same(identity, GetMissingAssemblyIdentity(ErrorCode.
ERR_NoSuchMemberOrExtension
));
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (6)
IOperation\IOperationTests_IAwaitExpression.cs (1)
154
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "await i").WithArguments("int", "GetAwaiter").WithLocation(9, 19)
IOperation\IOperationTests_IDelegateCreationExpression.cs (1)
723
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M1").WithArguments("object", "M1").WithLocation(8, 40)
IOperation\IOperationTests_IInterpolatedStringOperation.cs (2)
1747
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "literal").WithArguments("CustomHandler", "AppendLiteral").WithLocation(4, 31),
1753
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "{i}").WithArguments("CustomHandler", "AppendFormatted").WithLocation(4, 38),
IOperation\IOperationTests_InvalidExpression.cs (1)
150
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "MissingField").WithArguments("Program", "MissingField").WithLocation(9, 29)
IOperation\IOperationTests_InvalidStatement.cs (1)
409
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(var x1, var x2)").WithArguments("string[]", "Deconstruct").WithLocation(11, 45),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (169)
Semantics\BindingAwaitTests.cs (2)
73
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "await new A()").WithArguments("A", "GetAwaiter")
2692
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "VsTasksService").WithArguments("C", "VsTasksService").WithLocation(6, 21),
Semantics\BindingTests.cs (13)
3542
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ExtensionMethod0<>").WithArguments("string", "ExtensionMethod0").WithLocation(13, 44),
3551
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ExtensionMethod2<>").WithArguments("string", "ExtensionMethod2").WithLocation(15, 44),
3557
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ExtensionMethod0<>").WithArguments("string", "ExtensionMethod0").WithLocation(17, 48),
3569
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ExtensionMethod2<>").WithArguments("string", "ExtensionMethod2").WithLocation(19, 48),
3572
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ExtensionMethod0<int>").WithArguments("string", "ExtensionMethod0").WithLocation(21, 42),
3575
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ExtensionMethod1<int, bool>").WithArguments("string", "ExtensionMethod1").WithLocation(22, 42),
3578
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ExtensionMethod2<int, bool, string>").WithArguments("string", "ExtensionMethod2").WithLocation(23, 42),
3584
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ExtensionMethod2<int>").WithArguments("string", "ExtensionMethod2").WithLocation(26, 42),
3587
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ExtensionMethodNotFound0").WithArguments("string", "ExtensionMethodNotFound0").WithLocation(28, 51),
3590
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ExtensionMethodNotFound1<int>").WithArguments("string", "ExtensionMethodNotFound1").WithLocation(29, 51),
3593
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ExtensionMethodNotFound2<int, string>").WithArguments("string", "ExtensionMethodNotFound2").WithLocation(30, 51),
3599
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ExtensionMethod0<>").WithArguments("string", "ExtensionMethod0").WithLocation(32, 68),
3611
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ExtensionMethod2<>").WithArguments("string", "ExtensionMethod2").WithLocation(34, 68));
Semantics\ColorColorTests.cs (3)
1061
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Q").WithArguments("E", "Q"));
1107
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Q").WithArguments("E", "Q"));
1276
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Blue").WithArguments("int", "Blue"));
Semantics\DeconstructionTests.cs (9)
97
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "new C()").WithArguments("C", "Deconstruct").WithLocation(8, 28),
232
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "f").WithArguments("long", "f").WithLocation(8, 22),
235
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "g").WithArguments("string", "g").WithLocation(8, 27),
1155
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M()").WithArguments("void", "Deconstruct").WithLocation(7, 28),
2430
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M(x1)").WithArguments("void", "Deconstruct").WithLocation(6, 38),
3110
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "42").WithArguments("int", "Deconstruct").WithLocation(9, 32),
3189
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "42").WithArguments("int", "Deconstruct").WithLocation(9, 22),
3201
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "43").WithArguments("int", "Deconstruct").WithLocation(11, 23),
3213
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "44").WithArguments("int", "Deconstruct").WithLocation(13, 22),
Semantics\DelegateTypeTests.cs (8)
1075
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Length").WithArguments("object", "Length").WithLocation(6, 68),
1078
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Length").WithArguments("object", "Length").WithLocation(7, 47),
1081
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Length").WithArguments("object", "Length").WithLocation(8, 51),
1084
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Length").WithArguments("object", "Length").WithLocation(9, 53));
11135
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "BeginInvoke").WithArguments("<anonymous delegate>", "BeginInvoke").WithLocation(12, 25),
11138
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "EndInvoke").WithArguments("<anonymous delegate>", "EndInvoke").WithLocation(13, 12),
11141
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "BeginInvoke").WithArguments("<anonymous delegate>", "BeginInvoke").WithLocation(19, 25),
11144
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "EndInvoke").WithArguments("<anonymous delegate>", "EndInvoke").WithLocation(20, 12));
Semantics\DynamicTests.cs (3)
1965
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("U", "F"));
1990
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("object", "F"));
2083
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Bar").WithArguments("object", "Bar"));
Semantics\FunctionPointerTests.cs (1)
3869
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToString").WithArguments("delegate*<void>", "ToString").WithLocation(6, 23)
Semantics\GenericConstraintsTests.cs (2)
2767
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Print").WithArguments("T", "Print").WithLocation(20, 13));
2914
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "NonExistentMethod").WithArguments("T", "NonExistentMethod").WithLocation(7, 13));
Semantics\InheritanceBindingTests.cs (4)
426
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Interface").WithArguments("Class", "Interface").WithLocation(31, 11),
429
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Interface").WithArguments("Class", "Interface").WithLocation(32, 11),
432
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Interface").WithArguments("Class", "Interface").WithLocation(33, 11),
435
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Interface").WithArguments("Class", "Interface").WithLocation(34, 11));
Semantics\InterpolationTests.cs (2)
4380
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Literal").WithArguments("CustomHandler", "AppendLiteral").WithLocation(4, 21),
4386
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "{1}").WithArguments("CustomHandler", "AppendFormatted").WithLocation(4, 28),
Semantics\LocalFunctionTests.cs (3)
2487
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "BadLocal2").WithArguments("C", "BadLocal2").WithLocation(10, 14),
8772
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Constant").WithArguments("int", "Constant").WithLocation(13, 30),
8775
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Constant").WithArguments("int", "Constant").WithLocation(17, 26)
Semantics\NameOfTests.cs (3)
831
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Extension").WithArguments("A", "Extension").WithLocation(14, 22)
946
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Extension").WithArguments("A", "Extension").WithLocation(9, 22)
985
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Extension").WithArguments("A", "Extension").WithLocation(16, 22)
Semantics\NativeIntegerTests.cs (29)
1934
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToInt32").WithArguments("nint", "ToInt32").WithLocation(6, 15),
1937
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToInt64").WithArguments("nint", "ToInt64").WithLocation(7, 15),
1940
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToUInt32").WithArguments("nint", "ToUInt32").WithLocation(8, 15),
1943
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToUInt64").WithArguments("nint", "ToUInt64").WithLocation(9, 15),
1946
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToPointer").WithArguments("nint", "ToPointer").WithLocation(10, 15),
1949
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToInt32").WithArguments("nuint", "ToInt32").WithLocation(20, 15),
1952
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToInt64").WithArguments("nuint", "ToInt64").WithLocation(21, 15),
1955
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToUInt32").WithArguments("nuint", "ToUInt32").WithLocation(22, 15),
1958
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToUInt64").WithArguments("nuint", "ToUInt64").WithLocation(23, 15),
1961
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToPointer").WithArguments("nuint", "ToPointer").WithLocation(24, 15));
2333
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("nint", "P").WithLocation(16, 15),
2336
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("nint", "F").WithLocation(17, 15),
2339
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("nuint", "P").WithLocation(23, 15),
2342
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("nuint", "F").WithLocation(24, 15));
2552
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F2").WithArguments("nint", "F2").WithLocation(17, 19),
2558
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F2").WithArguments("nuint", "F2").WithLocation(29, 19));
2624
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F2").WithArguments("nint", "F2").WithLocation(6, 15),
2630
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F2").WithArguments("nuint", "F2").WithLocation(12, 15));
2723
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M<nint>").WithArguments("nint", "M").WithLocation(5, 15),
2729
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M<nuint>").WithArguments("nuint", "M").WithLocation(10, 15),
14224
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToPointer").WithArguments($"{nativeIntegerType}", "ToPointer").WithLocation(8, 29),
14233
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToPointer").WithArguments($"{nativeIntegerType}", "ToPointer").WithLocation(11, 21),
14242
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToPointer").WithArguments($"{nativeIntegerType}", "ToPointer").WithLocation(14, 50),
14348
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToPointer").WithArguments($"{nativeIntegerType}", "ToPointer").WithLocation(11, 18),
14357
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToPointer").WithArguments($"{nativeIntegerType}", "ToPointer").WithLocation(15, 13),
14360
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToPointer").WithArguments($"{nativeIntegerType}", "ToPointer").WithLocation(22, 21),
14369
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToPointer").WithArguments($"{nativeIntegerType}", "ToPointer").WithLocation(26, 13),
14372
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToPointer").WithArguments($"{nativeIntegerType}", "ToPointer").WithLocation(33, 20),
14381
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToPointer").WithArguments($"{nativeIntegerType}", "ToPointer").WithLocation(37, 13));
Semantics\NullableReferenceTypesTests.cs (24)
1181
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Missing").WithArguments("(int, string)", "Missing").WithLocation(7, 28),
1184
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Missing").WithArguments("(int, string)", "Missing").WithLocation(8, 32)
2004
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("A", "P").WithLocation(13, 15),
45008
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Value").WithArguments("T", "Value").WithLocation(87, 17),
45014
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Value").WithArguments("T", "Value").WithLocation(91, 17),
45020
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Value").WithArguments("T", "Value").WithLocation(96, 17),
45026
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Value").WithArguments("T", "Value").WithLocation(100, 17)
60298
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Missing").WithArguments("<empty anonymous type>", "Missing").WithLocation(5, 17),
60301
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Missing").WithArguments("<anonymous type: T t>", "Missing").WithLocation(7, 19));
60385
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "AsQueryable").WithArguments("<anonymous type: int? X>[]", "AsQueryable").WithLocation(6, 57),
60388
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "AsQueryable").WithArguments("<anonymous type: int? X>[]", "AsQueryable").WithLocation(7, 57));
74789
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Value").WithArguments("int", "Value").WithLocation(15, 17)
78920
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "c").WithArguments("C", "Deconstruct").WithLocation(5, 22),
85240
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "x").WithArguments("(object, int)", "x").WithLocation(13, 22));
85246
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "x").WithArguments("(object, int)", "x").WithLocation(13, 22));
85272
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "x").WithArguments("(object, int)", "x").WithLocation(13, 42));
126304
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Value").WithArguments("U", "Value").WithLocation(16, 20),
127413
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Lalala").WithArguments("int?", "Lalala").WithLocation(17, 11)
131071
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "new C(z = 1)").WithArguments("C", "Deconstruct").WithLocation(7, 22),
131097
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "new C(z = 1)").WithArguments("C", "Deconstruct").WithLocation(7, 34),
141423
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Extension").WithArguments("C", "Extension").WithLocation(6, 11),
141575
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Extension").WithArguments("C", "Extension").WithLocation(7, 11),
141631
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Extension").WithArguments("C", "Extension").WithLocation(7, 11),
141827
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Extension").WithArguments("T", "Extension").WithLocation(6, 11)
Semantics\ObjectAndCollectionInitializerTests.cs (2)
887
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, @"""str""").WithArguments("MyList<string>", "Add").WithLocation(7, 51)
2740
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "1").WithArguments("B", "Add").WithLocation(9, 27),
Semantics\OperatorTests.cs (1)
1942
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "str").WithArguments("S", "str").WithLocation(11, 53)
Semantics\OverloadResolutionTests.cs (2)
1308
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToStrign").WithArguments("string", "ToStrign").WithLocation(26, 36),
3086
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("I", "M"));
Semantics\QueryTests.cs (2)
3368
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "UNDEFINED").WithArguments("System.Reflection.Assembly", "UNDEFINED"),
3371
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "UNDEFINED").WithArguments("System.Reflection.Assembly", "UNDEFINED")
Semantics\RawInterpolationTests_Handler.cs (2)
2684
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Literal").WithArguments("CustomHandler", "AppendLiteral").WithLocation(4, 23),
2690
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "{1}").WithArguments("CustomHandler", "AppendFormatted").WithLocation(4, 30),
Semantics\ReadOnlyStructsTests.cs (1)
2027
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "this").WithArguments("S2", "Deconstruct").WithLocation(6, 22),
Semantics\RecordStructTests.cs (2)
3658
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "()").WithArguments("C", "Deconstruct").WithLocation(8, 19),
3735
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "()").WithArguments("C", "Deconstruct").WithLocation(8, 19),
Semantics\RecordTests.cs (2)
14625
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "()").WithArguments("C", "Deconstruct").WithLocation(8, 19),
15038
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "()").WithArguments("C", "Deconstruct").WithLocation(8, 19),
Semantics\RefExtensionMethodsTests.cs (33)
426
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("string", "PrintValue").WithLocation(14, 11));
440
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("string", "PrintValue").WithLocation(7, 11));
470
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("System.IComparable", "PrintValue").WithLocation(14, 11));
484
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("System.IComparable", "PrintValue").WithLocation(7, 11));
514
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("string", "PrintValue").WithLocation(14, 11));
528
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("string", "PrintValue").WithLocation(7, 11));
596
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("string", "PrintValue").WithLocation(14, 11));
610
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("string", "PrintValue").WithLocation(7, 11));
640
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("string", "PrintValue").WithLocation(14, 11));
654
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("string", "PrintValue").WithLocation(7, 11));
724
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("string", "PrintValue").WithLocation(7, 11));
760
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("System.IComparable", "PrintValue").WithLocation(7, 11));
796
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("string", "PrintValue").WithLocation(7, 11));
867
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("string", "PrintValue").WithLocation(7, 11));
903
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("string", "PrintValue").WithLocation(7, 11));
971
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("string", "PrintValue").WithLocation(14, 11));
985
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("string", "PrintValue").WithLocation(7, 11));
1015
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("System.IComparable", "PrintValue").WithLocation(14, 11));
1029
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("System.IComparable", "PrintValue").WithLocation(7, 11));
1059
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("string", "PrintValue").WithLocation(14, 11));
1073
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("string", "PrintValue").WithLocation(7, 11));
1103
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("int", "PrintValue").WithLocation(14, 11));
1117
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("int", "PrintValue").WithLocation(7, 11));
1147
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("string", "PrintValue").WithLocation(14, 11));
1161
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("string", "PrintValue").WithLocation(7, 11));
1191
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("string", "PrintValue").WithLocation(14, 11));
1205
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("string", "PrintValue").WithLocation(7, 11));
1280
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("string", "PrintValue").WithLocation(7, 11));
1319
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("System.IComparable", "PrintValue").WithLocation(7, 11));
1358
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("string", "PrintValue").WithLocation(7, 11));
1397
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("int", "PrintValue").WithLocation(7, 11));
1436
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("string", "PrintValue").WithLocation(7, 11));
1475
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "PrintValue").WithArguments("string", "PrintValue").WithLocation(7, 11));
Semantics\ScriptSemanticsTests.cs (2)
105
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "").WithArguments("System.Threading.Tasks.Task<object>", "GetAwaiter").WithLocation(1, 1));
196
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "").WithArguments("System.Threading.Tasks.Task<object>", "GetAwaiter").WithLocation(1, 1));
Semantics\SemanticAnalyzerTests.cs (1)
470
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Blah").WithArguments("P", "Blah").WithLocation(113, 11),
Semantics\SemanticErrorTests.cs (12)
13544
new ErrorDescription[] { new ErrorDescription { Code = (int)ErrorCode.
ERR_NoSuchMemberOrExtension
, Line = 25, Column = 13 } });
13562
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "value__").WithArguments("E", "value__").WithLocation(6, 22));
13586
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("A", "F"),
13587
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("A", "P"),
13588
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Q").WithArguments("A", "Q"),
13589
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("B", "F"),
13590
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("B", "P"),
13591
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Q").WithArguments("B", "Q"));
13608
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item").WithArguments("System.Collections.Generic.List<object>", "Item").WithLocation(6, 25),
13609
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item").WithArguments("System.Collections.Generic.List<object>", "Item").WithLocation(7, 14));
13629
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Select").WithArguments("int", "Select").WithLocation(7, 19));
13651
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M2").WithArguments("object", "M2").WithLocation(7, 11));
Semantics\UseSiteErrorTests.cs (1)
945
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Invoke").WithArguments("DelegateWithoutInvoke.DelegateSubWithoutInvoke", "Invoke").WithLocation(14, 21),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (53)
BadSymbolReference.cs (6)
1220
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M1").WithArguments("ErrorTest.I5", "M1"),
1235
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M1").WithArguments("T", "M1")
1284
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M1").WithArguments("T", "M1"),
1296
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M1").WithArguments("ErrorTest.C4", "M1")
1401
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M1").WithArguments("ErrorTest.C4", "M1"),
1419
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M1").WithArguments("T", "M1")
Compilation\GetSemanticInfoTests.cs (1)
5473
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Result").WithArguments("System.Threading.Tasks.Task", "Result").WithLocation(13, 30));
Symbols\AnonymousTypesSemanticsTests.cs (2)
1130
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "aa").WithArguments("ClassA", "aa"),
1305
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "aa").WithArguments("ClassA", "aa").WithLocation(19, 32),
Symbols\DefaultInterfaceImplementationTests.cs (1)
49989
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M1").WithArguments("I2", "M1").WithLocation(17, 11)
Symbols\ExtensionMethodTests.cs (14)
1161
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("object", "F").WithLocation(12, 11),
1164
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("object", "F").WithLocation(12, 18),
1167
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("object", "F").WithLocation(13, 15),
1170
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("object", "F").WithLocation(15, 17),
1173
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("object", "F").WithLocation(16, 15),
1176
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("object", "F").WithLocation(17, 20),
1207
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("object", "F").WithLocation(6, 11),
1210
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("object", "F").WithLocation(7, 13),
1213
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("object", "F").WithLocation(8, 22),
1216
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("object", "F").WithLocation(9, 15)
1416
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "E").WithArguments("A", "E").WithLocation(15, 13),
1492
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "G").WithArguments("N.A", "G").WithLocation(12, 15)
3262
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "MI").WithArguments("object", "MI").WithLocation(9, 11));
3740
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Goo").WithArguments("int", "Goo").WithLocation(9, 15),
Symbols\GenericConstraintTests.cs (11)
2223
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "H").WithArguments("X", "H"),
2304
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("U1", "F"),
2343
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("U", "M").WithLocation(15, 11));
2414
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("A", "M").WithLocation(22, 11),
2416
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("T1", "M").WithLocation(24, 12),
2418
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("T4", "M").WithLocation(27, 12));
6687
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "E1").WithArguments("X", "E1").WithLocation(18, 11));
7206
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "GetServiceA<>").WithArguments("I", "GetServiceA").WithLocation(11, 18),
7212
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "GetServiceA<>").WithArguments("I", "GetServiceA").WithLocation(12, 18),
7224
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "GetServiceC<>").WithArguments("I", "GetServiceC").WithLocation(17, 18),
7230
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "GetServiceC<>").WithArguments("I", "GetServiceC").WithLocation(18, 18)
Symbols\IndexedPropertyTests.cs (7)
864
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("A", "P").WithLocation(6, 11),
866
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("A", "P").WithLocation(6, 20),
1151
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "R").WithArguments("A", "R").WithLocation(16, 15));
1759
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("A2", "P").WithLocation(6, 11),
1761
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("A2", "P").WithLocation(6, 20),
1763
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("B2", "P").WithLocation(8, 11),
1765
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("B2", "P").WithLocation(8, 20));
Symbols\IndexerTests.cs (1)
934
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item").WithArguments("C", "Item"),
Symbols\Metadata\MetadataMemberTests.cs (3)
533
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "_VtblGap1_1").WithArguments("Class", "_VtblGap1_1"),
536
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "BothAccessorsAreGaps").WithArguments("Class", "BothAccessorsAreGaps"),
539
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "BothAccessorsAreGaps").WithArguments("Class", "BothAccessorsAreGaps"),
Symbols\Source\FileModifierTests.cs (2)
3416
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("string", "M").WithLocation(1, 5));
3445
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("string", "M").WithLocation(1, 5),
Symbols\Source\PropertyTests.cs (5)
522
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Instance").WithArguments("Mismatched", "Instance"),
525
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Instance").WithArguments("Mismatched", "Instance"),
625
new ErrorDescription { Code = (int)ErrorCode.
ERR_NoSuchMemberOrExtension
, Line = 6, Column = 11 },
2233
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P5").WithArguments("C", "P5").WithLocation(10, 18),
2239
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P5").WithArguments("B", "P5").WithLocation(26, 15),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Parsing\PatternParsingTests.cs (1)
2649
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(a, b, c)").WithArguments("int", "Deconstruct").WithLocation(1, 41),
Parsing\RawInterpolatedStringLiteralCompilingTests.cs (1)
376
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, @"await $"""""" """"""").WithArguments("string", "GetAwaiter").WithLocation(8, 17));
Parsing\RawStringLiteralCompilingTests.cs (1)
301
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, @"await """""" """"""").WithArguments("string", "GetAwaiter").WithLocation(8, 17));
Parsing\UsingDirectiveParsingTests.cs (1)
3008
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Goo").WithArguments("dynamic", "Goo").WithLocation(8, 11));
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (2)
CodeGen\WinRTCollectionTests.cs (2)
358
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "GetEnumerator")
360
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "GetEnumerator")