481 references to ERR_NoSuchMemberOrExtension
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Expressions.cs (1)
8226
Error(diagnostics, ErrorCode.
ERR_NoSuchMemberOrExtension
, name, boundLeft.Type, plainName);
Binder\Binder_Symbols.cs (1)
1516
Error(diagnostics, ErrorCode.
ERR_NoSuchMemberOrExtension
, right, receiver.Type, plainName);
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
778
ErrorCode.
ERR_NoSuchMemberOrExtension
,
Errors\ErrorFacts.cs (1)
1181
or ErrorCode.
ERR_NoSuchMemberOrExtension
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (70)
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)
3070
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "new C()").WithArguments("C.Awaitable", "GetAwaiter").WithLocation(7, 33)
3161
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "new C()").WithArguments("C.Awaiter", "GetResult").WithLocation(7, 33)
3232
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "new C()").WithArguments("int", "GetAwaiter").WithLocation(7, 33)
5979
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "new C()").WithArguments("int", "GetAwaiter").WithLocation(7, 33)
CodeGen\CodeGenAwaitUsingTests.cs (3)
807
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "new C()").WithArguments("int", "GetAwaiter").WithLocation(13, 22),
810
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "var x = new C()").WithArguments("int", "GetAwaiter").WithLocation(14, 22)
2640
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "var x = new C()").WithArguments("int", "GetAwaiter").WithLocation(6, 22)
CodeGen\CodeGenFunctionPointersTests.cs (2)
7442
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(a, b)").WithArguments("object", "Deconstruct").WithLocation(6, 25),
7448
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(var c, var d)").WithArguments("object", "Deconstruct").WithLocation(7, 21),
CodeGen\CodeGenRefConditionalOperatorTests.cs (1)
1203
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)
3739
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "a").WithArguments("(int, int)", "a").WithLocation(9, 41)
3888
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "b").WithArguments("(int a, int)", "b").WithLocation(9, 32)
4834
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "i1").WithArguments("(int, int)", "i1").WithLocation(19, 38)
5070
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "a").WithArguments("(int, int)", "a").WithLocation(21, 37)
5114
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "a").WithArguments("(int, int)", "a").WithLocation(22, 37)
5152
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "a").WithArguments("(int, int)", "a").WithLocation(14, 37),
5155
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "a").WithArguments("(int, int)", "a").WithLocation(15, 38)
5196
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "c").WithArguments("((int, int), int)", "c").WithLocation(12, 37),
12062
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "a4").WithArguments("(int, int)", "a4").WithLocation(8, 42),
12065
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "b4").WithArguments("(int, int)", "b4").WithLocation(9, 42),
12068
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "c4").WithArguments("(int, int)", "c4").WithLocation(10, 42),
12071
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "d4").WithArguments("(int, int)", "d4").WithLocation(11, 42),
12074
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "e4").WithArguments("(int, int)", "e4").WithLocation(12, 42),
12077
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "f4").WithArguments("(int, int)", "f4").WithLocation(13, 42),
12080
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "g4").WithArguments("(int, int)", "g4").WithLocation(14, 42),
12083
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "h4").WithArguments("(int, int)", "h4").WithLocation(15, 42),
12086
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "i4").WithArguments("(int, int)", "i4").WithLocation(16, 42)
12347
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item10").WithArguments("(int, int, int, int, int, int, int, int, int)", "Item10").WithLocation(8, 42),
12350
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item11").WithArguments("(int, int, int, int, int, int, int, int, int)", "Item11").WithLocation(9, 42),
12353
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item12").WithArguments("(int, int, int, int, int, int, int, int, int)", "Item12").WithLocation(10, 42),
12356
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item13").WithArguments("(int, int, int, int, int, int, int, int, int)", "Item13").WithLocation(11, 42),
12359
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item14").WithArguments("(int, int, int, int, int, int, int, int, int)", "Item14").WithLocation(12, 42),
12362
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item15").WithArguments("(int, int, int, int, int, int, int, int, int)", "Item15").WithLocation(13, 42),
12365
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item16").WithArguments("(int, int, int, int, int, int, int, int, int)", "Item16").WithLocation(14, 42),
12368
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item3").WithArguments("(int, int)", "Item3").WithLocation(16, 47),
12371
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item4").WithArguments("(int, int)", "Item4").WithLocation(17, 47),
12374
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item5").WithArguments("(int, int)", "Item5").WithLocation(18, 47),
12377
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item6").WithArguments("(int, int)", "Item6").WithLocation(19, 47),
12380
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item7").WithArguments("(int, int)", "Item7").WithLocation(20, 47),
12383
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item8").WithArguments("(int, int)", "Item8").WithLocation(21, 47),
12386
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item9").WithArguments("(int, int)", "Item9").WithLocation(22, 47),
12389
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item10").WithArguments("(int, int)", "Item10").WithLocation(23, 47),
12392
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item11").WithArguments("(int, int)", "Item11").WithLocation(24, 47),
12395
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item12").WithArguments("(int, int)", "Item12").WithLocation(25, 47),
12398
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item13").WithArguments("(int, int)", "Item13").WithLocation(26, 47),
12401
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item14").WithArguments("(int, int)", "Item14").WithLocation(27, 47),
12404
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item15").WithArguments("(int, int)", "Item15").WithLocation(28, 47),
12407
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item16").WithArguments("(int, int)", "Item16").WithLocation(29, 47)
14417
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item8").WithArguments("Test1<(int, int)>", "Item8").WithLocation(14, 37),
14420
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item8").WithArguments("ITest2<(int, int)>", "Item8").WithLocation(17, 37)
14510
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),
14513
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)
16173
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int, int)").WithArguments("object", "Deconstruct").WithLocation(6, 18),
16223
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int a, int b)").WithArguments("object", "Deconstruct").WithLocation(6, 18),
16247
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(1, 2)").WithArguments("object", "Deconstruct").WithLocation(6, 18),
16273
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int, int)").WithArguments("object", "Deconstruct").WithLocation(7, 18),
16304
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(1, 1)").WithArguments("object", "Deconstruct").WithLocation(7, 18),
16330
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(1, 1)").WithArguments("object", "Deconstruct").WithLocation(7, 18),
16452
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, @"await (7, ""7"")").WithArguments("(int, string)", "GetAwaiter").WithLocation(20, 9),
19646
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "b").WithArguments("(int a, int)", "b").WithLocation(8, 32),
19649
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "c").WithArguments("(int a, int)", "c").WithLocation(9, 32),
22694
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "first").WithArguments("string", "first").WithLocation(7, 37),
22697
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "second").WithArguments("string", "second").WithLocation(7, 48),
PrivateProtected.cs (1)
793
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "SomeExtension").WithArguments("string", "SomeExtension").WithLocation(11, 11)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (12)
Emit\NumericIntPtrTests.cs (12)
680
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("nint", "P").WithLocation(16, 15),
683
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("nint", "F").WithLocation(17, 15),
686
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("nuint", "P").WithLocation(23, 15),
689
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("nuint", "F").WithLocation(24, 15),
692
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("nint", "P").WithLocation(30, 15),
695
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("nint", "F").WithLocation(31, 15),
698
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("nuint", "P").WithLocation(37, 15),
701
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("nuint", "F").WithLocation(38, 15));
885
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F2").WithArguments("nint", "F2").WithLocation(7, 15),
891
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F2").WithArguments("nuint", "F2").WithLocation(13, 15),
897
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F2").WithArguments("nint", "F2").WithLocation(19, 15),
903
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F2").WithArguments("nuint", "F2").WithLocation(25, 15));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (161)
Attributes\AttributeTests.cs (1)
8769
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("object", "M"));
Attributes\InternalsVisibleToAndStrongNameTests.cs (2)
868
c.VerifyDiagnostics(Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Goo").WithArguments("C", "Goo"));
2387
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Bar").WithArguments("object", "Bar").WithLocation(8, 20),
FieldKeywordTests.cs (2)
392
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "field").WithArguments("C", "field").WithLocation(6, 29));
415
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "field").WithArguments("C", "field").WithLocation(6, 29));
FirstClassSpanTests.cs (12)
4942
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("int[]", "M").WithLocation(4, 7),
4976
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("int[]", "M").WithLocation(4, 14));
5009
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("int[]", "M").WithLocation(4, 12),
5063
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("int[]", "M").WithLocation(4, 7),
5066
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M<int>").WithArguments("int[]", "M").WithLocation(5, 7),
5069
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("int[]", "M").WithLocation(6, 12),
5113
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("int[]", "M").WithLocation(4, 12),
5119
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("int[]", "M").WithLocation(6, 23),
5122
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M<int>").WithArguments("int[]", "M").WithLocation(7, 12),
5131
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("int[]", "M").WithLocation(10, 23),
5134
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("int[]", "M").WithLocation(11, 28));
6709
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "E").WithArguments("int[]", "E").WithLocation(4, 44));
PartialEventsAndConstructorsTests.cs (1)
126
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("C", "F").WithLocation(6, 38)
Semantics\CollectionExpressionTests.cs (32)
3986
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[default]").WithArguments("string", "Add").WithLocation(7, 11),
3992
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "['A']").WithArguments("string", "Add").WithLocation(8, 11));
5769
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[default]").WithArguments("string", "Add").WithLocation(7, 13),
5775
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[null]").WithArguments("string", "Add").WithLocation(8, 13),
5784
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "['a']").WithArguments("string", "Add").WithLocation(9, 13),
5790
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[1]").WithArguments("string", "Add").WithLocation(10, 13),
5799
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, @"[..""""]").WithArguments("string", "Add").WithLocation(11, 13));
5830
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[default]").WithArguments("string", "Add").WithLocation(6, 21),
5839
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[null]").WithArguments("string", "Add").WithLocation(7, 21),
5848
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "['a']").WithArguments("string", "Add").WithLocation(8, 21),
5854
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[1]").WithArguments("string", "Add").WithLocation(9, 21),
5863
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, @"[..""""]").WithArguments("string", "Add").WithLocation(10, 21));
6551
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[1, 2]").WithArguments("S", "Add").WithLocation(2, 5),
7452
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "['a']").WithArguments("string", "Add").WithLocation(7, 13));
7670
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[1, ..x]").WithArguments("MyCollection<int>", "Add").WithLocation(6, 31));
16807
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[null]").WithArguments("Container<string>.MyCollection", "Add").WithLocation(19, 44),
17320
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[default]").WithArguments("Container<int>.MyCollection", "Add").WithLocation(27, 41));
18102
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[2]").WithArguments("MyCollection", "Add").WithLocation(6, 26));
18220
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[1, 2, 3]").WithArguments("MyCollection", "Add").WithLocation(6, 26));
18291
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[1, 2, null]").WithArguments("MyCollection<object>", "Add").WithLocation(6, 34));
19399
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[null]").WithArguments("Container<string>.MyCollection", "Add").WithLocation(24, 11));
20241
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "['h', 'i']").WithArguments("string", "Add").WithLocation(6, 49));
39094
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[x, ..y]").WithArguments("MyCollection<object>", "Add").WithLocation(7, 34));
40173
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[null]").WithArguments("MyCollection<string>", "Add").WithLocation(6, 35),
40176
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, @"[""a""]").WithArguments("MyCollection<string>", "Add").WithLocation(8, 14),
40179
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, @"[..(string[])[""a""], ""b""]").WithArguments("MyCollection<string>", "Add").WithLocation(10, 14));
40802
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[x, ..y]").WithArguments("MyCollection<int>", "Add").WithLocation(20, 31));
40811
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[x, ..y]").WithArguments("MyCollection<int>", "Add").WithLocation(20, 31));
40873
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[x, ..y]").WithArguments("MyCollection<int>", "Add").WithLocation(7, 31));
40954
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "x").WithArguments("MyCollection<int?>", "Add").WithLocation(20, 40)
41270
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[x, ..y]").WithArguments("MyCollection<object>", "Add").WithLocation(7, 34));
43303
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[new object()]").WithArguments("Container<object>", "Add").WithLocation(9, 16));
Semantics\ExtensionOperatorsTests.cs (9)
744
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, opName).WithArguments("S1", opName).WithLocation(6, 12),
2236
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "op_True").WithArguments("S1", "op_True").WithLocation(6, 12),
4777
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, opName).WithArguments("S1", opName).WithLocation(6, 12),
4896
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, opName).WithArguments("S1", opName).WithLocation(6, 12),
11521
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, opName).WithArguments("S1", opName).WithLocation(6, 12),
18827
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, opName).WithArguments("C1", opName).WithLocation(6, 12),
18954
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, opName).WithArguments("C1", opName).WithLocation(6, 12),
20248
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, opName).WithArguments("S1", opName).WithLocation(6, 12),
20375
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, opName).WithArguments("S1", opName).WithLocation(6, 12),
Semantics\ExtensionTests.cs (59)
2475
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "field").WithArguments("object", "field").WithLocation(1, 18),
2844
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("int", "M").WithLocation(1, 5));
2866
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("int", "M").WithLocation(1, 5));
2887
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("int", "M").WithLocation(1, 5));
4469
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M2").WithArguments("int", "M2").WithLocation(15, 11),
4472
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M3").WithArguments("int", "M3").WithLocation(16, 11),
5157
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("object", "M").WithLocation(11, 18),
5160
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("object", "M").WithLocation(19, 41)
9567
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("object", "P").WithLocation(11, 18),
9570
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("object", "P").WithLocation(19, 31)
9601
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "get_P").WithArguments("object", "get_P").WithLocation(11, 18),
9604
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "get_P").WithArguments("object", "get_P").WithLocation(19, 31)
9611
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "get_P").WithArguments("object", "get_P").WithLocation(11, 18),
9614
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "get_P").WithArguments("object", "get_P").WithLocation(19, 31)
11341
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("object", "M").WithLocation(1, 14));
11367
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("object", "M").WithLocation(1, 14));
11644
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Method").WithArguments("object", "Method").WithLocation(7, 22),
11647
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Property").WithArguments("object", "Property").WithLocation(8, 26));
11656
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Method").WithArguments("object", "Method").WithLocation(5, 22),
11659
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Property").WithArguments("object", "Property").WithLocation(6, 26));
12343
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M<string>").WithArguments("C<int>", "M").WithLocation(1, 14));
12407
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M<,>").WithArguments("C<int>", "M").WithLocation(1, 14));
13618
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M<object, object>").WithArguments("C", "M").WithLocation(1, 9)
13785
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "StaticType<string>").WithArguments("C<int>", "StaticType").WithLocation(1, 14),
14014
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("C<object, dynamic>", "M").WithLocation(1, 26),
14017
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("C<dynamic, object>", "M").WithLocation(2, 26),
14020
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M2").WithArguments("C<object, dynamic>", "M2").WithLocation(4, 26),
14023
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M2").WithArguments("C<dynamic, object>", "M2").WithLocation(5, 26));
14334
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("C", "M").WithLocation(1, 9));
14461
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("C", "M").WithLocation(1, 30));
14979
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("I<object, string>", "M").WithLocation(1, 19));
15283
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("object", "P").WithLocation(1, 14));
16065
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[42]").WithArguments("MyCollection", "Add").WithLocation(4, 18)
16115
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[42]").WithArguments("MyCollection", "Add").WithLocation(4, 18));
18720
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("System.Span<int>", "M").WithLocation(3, 21));
19910
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Member").WithArguments("Color", "Member").WithLocation(5, 15));
19993
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Member").WithArguments("Color", "Member").WithLocation(5, 15));
20165
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("object", "M").WithLocation(1, 14));
20301
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, " ").WithArguments("InterpolationHandler", "AppendLiteral").WithLocation(1, 20),
20337
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, " ").WithArguments("InterpolationHandler", "AppendLiteral").WithLocation(1, 20),
20372
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "{(object)1}").WithArguments("InterpolationHandler", "AppendFormatted").WithLocation(2, 9),
20378
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "{f2()}").WithArguments("InterpolationHandler", "AppendFormatted").WithLocation(2, 21),
20415
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "{(object)1}").WithArguments("InterpolationHandler", "AppendFormatted").WithLocation(1, 9),
20421
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "{f2()}").WithArguments("InterpolationHandler", "AppendFormatted").WithLocation(1, 21),
20975
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("C", "M").WithLocation(1, 3),
20978
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M2").WithArguments("C", "M2").WithLocation(2, 9));
21668
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "new C1()").WithArguments("C1", "Deconstruct").WithLocation(1, 16),
21717
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "new C()").WithArguments("C", "Deconstruct").WithLocation(1, 14),
22561
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "await new C()").WithArguments("C", "GetAwaiter").WithLocation(5, 9));
22624
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "await new C()").WithArguments("C", "GetAwaiter").WithLocation(5, 9));
24445
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "42").WithArguments("MyCollection", "Add").WithLocation(4, 39));
24494
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "42").WithArguments("MyCollection", "Add").WithLocation(4, 39));
25498
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("(int a, int b)", "M").WithLocation(2, 16));
25531
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("(int a, int b)", "M").WithLocation(2, 18));
31330
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M2").WithArguments("C", "M2").WithLocation(7, 3),
32554
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("int", "P").WithLocation(2, 7));
32634
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P<object>").WithArguments("string", "P").WithLocation(2, 7));
32689
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M<string>").WithArguments("string", "M").WithLocation(2, 3));
42890
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("int", "P").WithLocation(2, 8));
Semantics\ExtensionTests2.cs (1)
2819
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("int", "M").WithLocation(1, 4));
Semantics\ParamsCollectionTests.cs (5)
1331
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, @"[""2"", 3]").WithArguments("string", "Add").WithLocation(20, 14),
1346
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[3]").WithArguments("string", "Add").WithLocation(24, 14),
2472
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, @"[""2"", 3]").WithArguments("string", "Add").WithLocation(17, 14),
15926
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M1").WithArguments("System.Collections.Generic.IEnumerable<long>", "M1").WithLocation(8, 11),
15929
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M2").WithArguments("long[]", "M2").WithLocation(9, 11)
Semantics\PatternMatchingTests_ListPatterns.cs (2)
4005
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Value").WithArguments("int", "Value").WithLocation(14, 19),
4011
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Value").WithArguments("int", "Value").WithLocation(16, 16)
Semantics\PatternMatchingTests_NullableTypes.cs (2)
64
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(1, 2)").WithArguments("int", "Deconstruct").WithLocation(11, 32),
133
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(1, 2)").WithArguments("int[]", "Deconstruct").WithLocation(11, 34),
Semantics\PatternMatchingTests2.cs (5)
859
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(x, y)").WithArguments("N.var", "Deconstruct").WithLocation(10, 36),
868
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(x, y)").WithArguments("N.var", "Deconstruct").WithLocation(11, 37),
1157
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(1, 2)").WithArguments("object", "Deconstruct").WithLocation(8, 18),
2186
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(a: 1)").WithArguments("C", "Deconstruct").WithLocation(4, 21),
2208
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)
244
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(3, 4, 5)").WithArguments("object", "Deconstruct").WithLocation(7, 32),
279
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(3, 4, 5)").WithArguments("object", "Deconstruct").WithLocation(15, 32),
570
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(3, 4)").WithArguments("T", "Deconstruct").WithLocation(13, 32),
576
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(3, 4, 5)").WithArguments("T", "Deconstruct").WithLocation(14, 32),
582
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(3, 0, 5)").WithArguments("T", "Deconstruct").WithLocation(15, 32),
588
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(3, 4, 5, 6)").WithArguments("T", "Deconstruct").WithLocation(16, 32),
870
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(3, 4, 5)").WithArguments("object", "Deconstruct").WithLocation(17, 32),
907
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(3, 4, 5)").WithArguments("object", "Deconstruct").WithLocation(17, 32),
Semantics\PatternSwitchTests.cs (17)
1692
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int, int)").WithArguments("object", "Deconstruct").WithLocation(21, 18),
1704
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int x, int y)").WithArguments("object", "Deconstruct").WithLocation(22, 18),
1710
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int, int)").WithArguments("object", "Deconstruct").WithLocation(23, 18),
1722
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int a, int b)").WithArguments("object", "Deconstruct").WithLocation(24, 18),
1728
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(long, long)").WithArguments("object", "Deconstruct").WithLocation(25, 18),
1740
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int, int)").WithArguments("object", "Deconstruct").WithLocation(30, 18),
1752
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(long, long)").WithArguments("object", "Deconstruct").WithLocation(32, 18),
1764
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(System.Int32, System.Int32)").WithArguments("object", "Deconstruct").WithLocation(37, 18),
1770
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(System.Int64, System.Int64)").WithArguments("object", "Deconstruct").WithLocation(39, 18),
1776
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int, int)").WithArguments("object", "Deconstruct").WithLocation(43, 22),
1788
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int x, int y)").WithArguments("object", "Deconstruct").WithLocation(44, 22),
1794
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int, int)").WithArguments("object", "Deconstruct").WithLocation(45, 22),
1806
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int a, int b)").WithArguments("object", "Deconstruct").WithLocation(46, 22),
1812
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(System.Int32, System.Int32)").WithArguments("object", "Deconstruct").WithLocation(49, 22),
1818
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(System.Int32 x, System.Int32 y)").WithArguments("object", "Deconstruct").WithLocation(50, 22),
1824
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(System.Int32, System.Int32)").WithArguments("object", "Deconstruct").WithLocation(51, 22),
1830
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(System.Int32 a, System.Int32 b)").WithArguments("object", "Deconstruct").WithLocation(52, 22),
Semantics\RecordTests.cs (2)
14728
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "()").WithArguments("C", "Deconstruct").WithLocation(8, 19),
15141
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "()").WithArguments("C", "Deconstruct").WithLocation(8, 19),
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)
148
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 (168)
Semantics\BindingAwaitTests.cs (2)
74
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "await new A()").WithArguments("A", "GetAwaiter")
2693
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "VsTasksService").WithArguments("C", "VsTasksService").WithLocation(6, 21),
Semantics\BindingTests.cs (13)
3802
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ExtensionMethod0<>").WithArguments("string", "ExtensionMethod0").WithLocation(13, 44),
3811
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ExtensionMethod2<>").WithArguments("string", "ExtensionMethod2").WithLocation(15, 44),
3817
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ExtensionMethod0<>").WithArguments("string", "ExtensionMethod0").WithLocation(17, 48),
3829
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ExtensionMethod2<>").WithArguments("string", "ExtensionMethod2").WithLocation(19, 48),
3832
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ExtensionMethod0<int>").WithArguments("string", "ExtensionMethod0").WithLocation(21, 42),
3835
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ExtensionMethod1<int, bool>").WithArguments("string", "ExtensionMethod1").WithLocation(22, 42),
3838
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ExtensionMethod2<int, bool, string>").WithArguments("string", "ExtensionMethod2").WithLocation(23, 42),
3844
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ExtensionMethod2<int>").WithArguments("string", "ExtensionMethod2").WithLocation(26, 42),
3847
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ExtensionMethodNotFound0").WithArguments("string", "ExtensionMethodNotFound0").WithLocation(28, 51),
3850
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ExtensionMethodNotFound1<int>").WithArguments("string", "ExtensionMethodNotFound1").WithLocation(29, 51),
3853
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ExtensionMethodNotFound2<int, string>").WithArguments("string", "ExtensionMethodNotFound2").WithLocation(30, 51),
3859
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ExtensionMethod0<>").WithArguments("string", "ExtensionMethod0").WithLocation(32, 68),
3871
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ExtensionMethod2<>").WithArguments("string", "ExtensionMethod2").WithLocation(34, 68));
Semantics\ColorColorTests.cs (4)
1062
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Q").WithArguments("E", "Q"));
1108
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Q").WithArguments("E", "Q"));
1277
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Blue").WithArguments("int", "Blue"));
2396
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "AssemblyName").WithArguments("RuntimeSystem", "AssemblyName").WithLocation(10, 65),
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));
14571
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "BeginInvoke").WithArguments("<anonymous delegate>", "BeginInvoke").WithLocation(12, 25),
14574
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "EndInvoke").WithArguments("<anonymous delegate>", "EndInvoke").WithLocation(13, 12),
14577
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "BeginInvoke").WithArguments("<anonymous delegate>", "BeginInvoke").WithLocation(19, 25),
14580
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "EndInvoke").WithArguments("<anonymous delegate>", "EndInvoke").WithLocation(20, 12));
Semantics\DynamicTests.cs (3)
2191
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("U", "F"));
2216
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("object", "F"));
2309
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Bar").WithArguments("object", "Bar"));
Semantics\FunctionPointerTests.cs (1)
3890
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)
4407
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Literal").WithArguments("CustomHandler", "AppendLiteral").WithLocation(4, 21),
4413
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "{1}").WithArguments("CustomHandler", "AppendFormatted").WithLocation(4, 28),
Semantics\LocalFunctionTests.cs (2)
8856
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Constant").WithArguments("int", "Constant").WithLocation(13, 30),
8859
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Constant").WithArguments("int", "Constant").WithLocation(17, 26)
Semantics\NameOfTests.cs (3)
827
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Extension").WithArguments("A", "Extension").WithLocation(14, 22)
942
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Extension").WithArguments("A", "Extension").WithLocation(9, 22)
1290
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Extension").WithArguments("A", "Extension").WithLocation(16, 22)
Semantics\NativeIntegerTests.cs (29)
1939
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToInt32").WithArguments("nint", "ToInt32").WithLocation(6, 15),
1942
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToInt64").WithArguments("nint", "ToInt64").WithLocation(7, 15),
1945
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToUInt32").WithArguments("nint", "ToUInt32").WithLocation(8, 15),
1948
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToUInt64").WithArguments("nint", "ToUInt64").WithLocation(9, 15),
1951
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToPointer").WithArguments("nint", "ToPointer").WithLocation(10, 15),
1954
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToInt32").WithArguments("nuint", "ToInt32").WithLocation(20, 15),
1957
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToInt64").WithArguments("nuint", "ToInt64").WithLocation(21, 15),
1960
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToUInt32").WithArguments("nuint", "ToUInt32").WithLocation(22, 15),
1963
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToUInt64").WithArguments("nuint", "ToUInt64").WithLocation(23, 15),
1966
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToPointer").WithArguments("nuint", "ToPointer").WithLocation(24, 15));
2338
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("nint", "P").WithLocation(16, 15),
2341
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("nint", "F").WithLocation(17, 15),
2344
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("nuint", "P").WithLocation(23, 15),
2347
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("nuint", "F").WithLocation(24, 15));
2557
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F2").WithArguments("nint", "F2").WithLocation(17, 19),
2563
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F2").WithArguments("nuint", "F2").WithLocation(29, 19));
2629
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F2").WithArguments("nint", "F2").WithLocation(6, 15),
2635
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F2").WithArguments("nuint", "F2").WithLocation(12, 15));
2728
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M<nint>").WithArguments("nint", "M").WithLocation(5, 15),
2734
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M<nuint>").WithArguments("nuint", "M").WithLocation(10, 15),
14255
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToPointer").WithArguments($"{nativeIntegerType}", "ToPointer").WithLocation(8, 29),
14264
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToPointer").WithArguments($"{nativeIntegerType}", "ToPointer").WithLocation(11, 21),
14273
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToPointer").WithArguments($"{nativeIntegerType}", "ToPointer").WithLocation(14, 50),
14379
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToPointer").WithArguments($"{nativeIntegerType}", "ToPointer").WithLocation(11, 18),
14388
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToPointer").WithArguments($"{nativeIntegerType}", "ToPointer").WithLocation(15, 13),
14391
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToPointer").WithArguments($"{nativeIntegerType}", "ToPointer").WithLocation(22, 21),
14400
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToPointer").WithArguments($"{nativeIntegerType}", "ToPointer").WithLocation(26, 13),
14403
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToPointer").WithArguments($"{nativeIntegerType}", "ToPointer").WithLocation(33, 20),
14412
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToPointer").WithArguments($"{nativeIntegerType}", "ToPointer").WithLocation(37, 13));
Semantics\NullableReferenceTypesTests.cs (25)
1193
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Missing").WithArguments("(int, string)", "Missing").WithLocation(7, 28),
1196
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Missing").WithArguments("(int, string)", "Missing").WithLocation(8, 32)
2016
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("A", "P").WithLocation(13, 15),
28883
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "B").WithArguments("string", "B").WithLocation(13, 16));
47129
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Value").WithArguments("T", "Value").WithLocation(87, 17),
47135
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Value").WithArguments("T", "Value").WithLocation(91, 17),
47141
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Value").WithArguments("T", "Value").WithLocation(96, 17),
47147
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Value").WithArguments("T", "Value").WithLocation(100, 17)
62788
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Missing").WithArguments("<empty anonymous type>", "Missing").WithLocation(5, 17),
62791
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Missing").WithArguments("<anonymous type: T t>", "Missing").WithLocation(7, 19));
62875
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "AsQueryable").WithArguments("<anonymous type: int? X>[]", "AsQueryable").WithLocation(6, 57),
62878
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "AsQueryable").WithArguments("<anonymous type: int? X>[]", "AsQueryable").WithLocation(7, 57));
78484
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Value").WithArguments("int", "Value").WithLocation(15, 17)
82609
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "c").WithArguments("C", "Deconstruct").WithLocation(5, 22),
88929
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "x").WithArguments("(object, int)", "x").WithLocation(13, 22));
88935
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "x").WithArguments("(object, int)", "x").WithLocation(13, 22));
88961
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "x").WithArguments("(object, int)", "x").WithLocation(13, 42));
130074
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Value").WithArguments("U", "Value").WithLocation(16, 20),
131183
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Lalala").WithArguments("int?", "Lalala").WithLocation(17, 11)
134841
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "new C(z = 1)").WithArguments("C", "Deconstruct").WithLocation(7, 22),
134867
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "new C(z = 1)").WithArguments("C", "Deconstruct").WithLocation(7, 34),
145752
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Extension").WithArguments("C", "Extension").WithLocation(6, 11),
145904
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Extension").WithArguments("C", "Extension").WithLocation(7, 11),
145960
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Extension").WithArguments("C", "Extension").WithLocation(7, 11),
146156
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Extension").WithArguments("T", "Extension").WithLocation(6, 11)
Semantics\ObjectAndCollectionInitializerTests.cs (2)
889
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, @"""str""").WithArguments("MyList<string>", "Add").WithLocation(7, 51)
2748
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)
1306
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "ToStrign").WithArguments("string", "ToStrign").WithLocation(26, 36),
3084
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)
2685
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Literal").WithArguments("CustomHandler", "AppendLiteral").WithLocation(4, 23),
2691
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)
3760
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "()").WithArguments("C", "Deconstruct").WithLocation(8, 19),
3837
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)
13657
new ErrorDescription[] { new ErrorDescription { Code = (int)ErrorCode.
ERR_NoSuchMemberOrExtension
, Line = 25, Column = 13 } });
13675
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "value__").WithArguments("E", "value__").WithLocation(6, 22));
13699
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("A", "F"),
13700
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("A", "P"),
13701
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Q").WithArguments("A", "Q"),
13702
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("B", "F"),
13703
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("B", "P"),
13704
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Q").WithArguments("B", "Q"));
13721
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item").WithArguments("System.Collections.Generic.List<object>", "Item").WithLocation(6, 25),
13722
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item").WithArguments("System.Collections.Generic.List<object>", "Item").WithLocation(7, 14));
13742
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Select").WithArguments("int", "Select").WithLocation(7, 19));
13764
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 (54)
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)
50180
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M1").WithArguments("I2", "M1").WithLocation(17, 11)
Symbols\ExtensionMethodTests.cs (15)
437
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Goo").WithArguments("int", "Goo").WithLocation(12, 20),
1157
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("object", "F").WithLocation(12, 11),
1160
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("object", "F").WithLocation(12, 18),
1163
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("object", "F").WithLocation(13, 15),
1166
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("object", "F").WithLocation(15, 17),
1169
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("object", "F").WithLocation(16, 15),
1172
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("object", "F").WithLocation(17, 20),
1203
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("object", "F").WithLocation(6, 11),
1206
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("object", "F").WithLocation(7, 13),
1209
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("object", "F").WithLocation(8, 22),
1212
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("object", "F").WithLocation(9, 15)
1412
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "E").WithArguments("A", "E").WithLocation(15, 13),
1488
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "G").WithArguments("N.A", "G").WithLocation(12, 15)
3256
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "MI").WithArguments("object", "MI").WithLocation(9, 11));
3734
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Goo").WithArguments("int", "Goo").WithLocation(9, 15),
Symbols\GenericConstraintTests.cs (11)
2225
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "H").WithArguments("X", "H"),
2306
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("U1", "F"),
2345
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("U", "M").WithLocation(15, 11));
2416
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("A", "M").WithLocation(22, 11),
2418
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("T1", "M").WithLocation(24, 12),
2420
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("T4", "M").WithLocation(27, 12));
6714
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "E1").WithArguments("X", "E1").WithLocation(18, 11));
7233
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "GetServiceA<>").WithArguments("I", "GetServiceA").WithLocation(11, 18),
7239
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "GetServiceA<>").WithArguments("I", "GetServiceA").WithLocation(12, 18),
7251
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "GetServiceC<>").WithArguments("I", "GetServiceC").WithLocation(17, 18),
7257
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)
936
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item").WithArguments("C", "Item"),
Symbols\Metadata\MetadataMemberTests.cs (3)
537
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "_VtblGap1_1").WithArguments("Class", "_VtblGap1_1"),
540
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "BothAccessorsAreGaps").WithArguments("Class", "BothAccessorsAreGaps"),
543
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "BothAccessorsAreGaps").WithArguments("Class", "BothAccessorsAreGaps"),
Symbols\Source\FileModifierTests.cs (2)
3974
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("string", "M").WithLocation(1, 5));
4015
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("string", "M").WithLocation(1, 5),
Symbols\Source\PropertyTests.cs (5)
523
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Instance").WithArguments("Mismatched", "Instance"),
526
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Instance").WithArguments("Mismatched", "Instance"),
626
new ErrorDescription { Code = (int)ErrorCode.
ERR_NoSuchMemberOrExtension
, Line = 6, Column = 11 },
2234
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P5").WithArguments("C", "P5").WithLocation(10, 18),
2240
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P5").WithArguments("B", "P5").WithLocation(26, 15),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Parsing\PatternParsingTests.cs (1)
2637
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)
2958
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Goo").WithArguments("dynamic", "Goo").WithLocation(8, 11));
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (2)
CodeGen\WinRTCollectionTests.cs (2)
359
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "GetEnumerator")
361
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "GetEnumerator")