470 references to ERR_NoSuchMemberOrExtension
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Expressions.cs (1)
8254
Error(diagnostics, ErrorCode.
ERR_NoSuchMemberOrExtension
, name, boundLeft.Type, plainName);
Binder\Binder_Symbols.cs (1)
1517
Error(diagnostics, ErrorCode.
ERR_NoSuchMemberOrExtension
, right, receiver.Type, plainName);
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
807
ErrorCode.
ERR_NoSuchMemberOrExtension
,
Errors\ErrorFacts.cs (1)
1183
or ErrorCode.
ERR_NoSuchMemberOrExtension
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (71)
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\CodeGenAsyncSpillTests.cs (1)
8680
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("S", "M").WithLocation(10, 17),
CodeGen\CodeGenAwaitForeachTests.cs (4)
4667
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "new C()").WithArguments("C.Awaitable", "GetAwaiter").WithLocation(7, 33)
4758
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "new C()").WithArguments("C.Awaiter", "GetResult").WithLocation(7, 33)
4829
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "new C()").WithArguments("int", "GetAwaiter").WithLocation(7, 33)
9324
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "new C()").WithArguments("int", "GetAwaiter").WithLocation(7, 33)
CodeGen\CodeGenAwaitUsingTests.cs (3)
1118
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "new C()").WithArguments("int", "GetAwaiter").WithLocation(13, 22),
1121
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "var x = new C()").WithArguments("int", "GetAwaiter").WithLocation(14, 22)
4228
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "var x = new C()").WithArguments("int", "GetAwaiter").WithLocation(6, 22)
CodeGen\CodeGenFunctionPointersTests.cs (2)
7440
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(a, b)").WithArguments("object", "Deconstruct").WithLocation(6, 25),
7446
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(var c, var d)").WithArguments("object", "Deconstruct").WithLocation(7, 21),
CodeGen\CodeGenRefConditionalOperatorTests.cs (1)
1210
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 (146)
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)
393
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "field").WithArguments("C", "field").WithLocation(6, 29));
416
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "field").WithArguments("C", "field").WithLocation(6, 29));
FirstClassSpanTests.cs (8)
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),
5113
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("int[]", "M").WithLocation(4, 12),
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),
PartialEventsAndConstructorsTests.cs (1)
126
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("C", "F").WithLocation(6, 38)
Semantics\CollectionExpressionTests.cs (32)
3985
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[default]").WithArguments("string", "Add").WithLocation(7, 11),
3991
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "['A']").WithArguments("string", "Add").WithLocation(8, 11));
7608
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[default]").WithArguments("string", "Add").WithLocation(7, 13),
7614
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[null]").WithArguments("string", "Add").WithLocation(8, 13),
7623
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "['a']").WithArguments("string", "Add").WithLocation(9, 13),
7629
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[1]").WithArguments("string", "Add").WithLocation(10, 13),
7638
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, @"[..""""]").WithArguments("string", "Add").WithLocation(11, 13));
7669
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[default]").WithArguments("string", "Add").WithLocation(6, 21),
7678
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[null]").WithArguments("string", "Add").WithLocation(7, 21),
7687
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "['a']").WithArguments("string", "Add").WithLocation(8, 21),
7693
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[1]").WithArguments("string", "Add").WithLocation(9, 21),
7702
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, @"[..""""]").WithArguments("string", "Add").WithLocation(10, 21));
8390
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[1, 2]").WithArguments("S", "Add").WithLocation(2, 5),
9291
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "['a']").WithArguments("string", "Add").WithLocation(7, 13));
9509
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[1, ..x]").WithArguments("MyCollection<int>", "Add").WithLocation(6, 31));
18649
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[null]").WithArguments("Container<string>.MyCollection", "Add").WithLocation(19, 44),
19162
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[default]").WithArguments("Container<int>.MyCollection", "Add").WithLocation(27, 41));
19944
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[2]").WithArguments("MyCollection", "Add").WithLocation(6, 26));
20062
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[1, 2, 3]").WithArguments("MyCollection", "Add").WithLocation(6, 26));
20133
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[1, 2, null]").WithArguments("MyCollection<object>", "Add").WithLocation(6, 34));
21241
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[null]").WithArguments("Container<string>.MyCollection", "Add").WithLocation(24, 11));
22083
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "['h', 'i']").WithArguments("string", "Add").WithLocation(6, 49));
41873
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[x, ..y]").WithArguments("MyCollection<object>", "Add").WithLocation(7, 34));
42952
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[null]").WithArguments("MyCollection<string>", "Add").WithLocation(6, 35),
42955
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, @"[""a""]").WithArguments("MyCollection<string>", "Add").WithLocation(8, 14),
42958
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, @"[..(string[])[""a""], ""b""]").WithArguments("MyCollection<string>", "Add").WithLocation(10, 14));
43581
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[x, ..y]").WithArguments("MyCollection<int>", "Add").WithLocation(20, 31));
43590
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[x, ..y]").WithArguments("MyCollection<int>", "Add").WithLocation(20, 31));
43652
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[x, ..y]").WithArguments("MyCollection<int>", "Add").WithLocation(7, 31));
43899
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[x, ..y]").WithArguments("MyCollection<int>", "Add").WithLocation(7, 31),
44052
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[x, ..y]").WithArguments("MyCollection<object>", "Add").WithLocation(7, 34));
46085
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[new object()]").WithArguments("Container<object>", "Add").WithLocation(9, 16));
Semantics\ExtensionOperatorsTests.cs (9)
745
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, opName).WithArguments("S1", opName).WithLocation(6, 12),
2237
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "op_True").WithArguments("S1", "op_True").WithLocation(6, 12),
4826
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, opName).WithArguments("S1", opName).WithLocation(6, 12),
4945
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, opName).WithArguments("S1", opName).WithLocation(6, 12),
11615
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, opName).WithArguments("S1", opName).WithLocation(6, 12),
18963
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, opName).WithArguments("C1", opName).WithLocation(6, 12),
19090
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, opName).WithArguments("C1", opName).WithLocation(6, 12),
20445
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, opName).WithArguments("S1", opName).WithLocation(6, 12),
20572
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, opName).WithArguments("S1", opName).WithLocation(6, 12),
Semantics\ExtensionTests.cs (55)
2633
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "field").WithArguments("object", "field").WithLocation(1, 18),
4682
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M2").WithArguments("int", "M2").WithLocation(15, 11),
4685
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M3").WithArguments("int", "M3").WithLocation(16, 11),
5546
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("object", "M").WithLocation(11, 18),
5549
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("object", "M").WithLocation(19, 41)
10391
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("object", "P").WithLocation(11, 18),
10394
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("object", "P").WithLocation(19, 31)
10425
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "get_P").WithArguments("object", "get_P").WithLocation(11, 18),
10428
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "get_P").WithArguments("object", "get_P").WithLocation(19, 31)
10435
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "get_P").WithArguments("object", "get_P").WithLocation(11, 18),
10438
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "get_P").WithArguments("object", "get_P").WithLocation(19, 31)
12314
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("object", "M").WithLocation(1, 14));
12340
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("object", "M").WithLocation(1, 14));
12617
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Method").WithArguments("object", "Method").WithLocation(7, 22),
12620
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Property").WithArguments("object", "Property").WithLocation(8, 26));
12629
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Method").WithArguments("object", "Method").WithLocation(5, 22),
12632
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Property").WithArguments("object", "Property").WithLocation(6, 26));
13316
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M<string>").WithArguments("C<int>", "M").WithLocation(1, 14));
13380
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M<,>").WithArguments("C<int>", "M").WithLocation(1, 14));
14740
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M<object, object>").WithArguments("C", "M").WithLocation(1, 9)
14907
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "StaticType<string>").WithArguments("C<int>", "StaticType").WithLocation(1, 14),
15859
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("object", "M").WithLocation(2, 3),
15862
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M2").WithArguments("object", "M2").WithLocation(3, 3),
16411
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("object", "P").WithLocation(1, 14));
17193
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[42]").WithArguments("MyCollection", "Add").WithLocation(4, 18)
17243
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[42]").WithArguments("MyCollection", "Add").WithLocation(4, 18));
18458
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "f").WithArguments("string", "f").WithLocation(5, 20),
18461
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "f").WithArguments("string", "f").WithLocation(5, 31),
19891
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("System.Span<int>", "M").WithLocation(3, 21));
21081
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Member").WithArguments("Color", "Member").WithLocation(5, 15));
21164
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Member").WithArguments("Color", "Member").WithLocation(5, 15));
21336
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("object", "M").WithLocation(1, 14));
21525
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, " ").WithArguments("InterpolationHandler", "AppendLiteral").WithLocation(1, 20),
21561
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, " ").WithArguments("InterpolationHandler", "AppendLiteral").WithLocation(1, 20),
21596
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "{(object)1}").WithArguments("InterpolationHandler", "AppendFormatted").WithLocation(2, 9),
21602
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "{f2()}").WithArguments("InterpolationHandler", "AppendFormatted").WithLocation(2, 21),
21639
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "{(object)1}").WithArguments("InterpolationHandler", "AppendFormatted").WithLocation(1, 9),
21645
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "{f2()}").WithArguments("InterpolationHandler", "AppendFormatted").WithLocation(1, 21),
25878
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "new C1()").WithArguments("C1", "Deconstruct").WithLocation(1, 16),
25926
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "new C()").WithArguments("C", "Deconstruct").WithLocation(1, 14),
26787
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "await new C()").WithArguments("C", "GetAwaiter").WithLocation(5, 9));
26850
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "await new C()").WithArguments("C", "GetAwaiter").WithLocation(5, 9));
28704
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "42").WithArguments("MyCollection", "Add").WithLocation(4, 39));
28753
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "42").WithArguments("MyCollection", "Add").WithLocation(4, 39));
29517
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "C.Property").WithArguments("C", "Property").WithLocation(1, 29));
29937
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("(int a, int b)", "M").WithLocation(2, 16));
29970
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("(int a, int b)", "M").WithLocation(2, 18));
35987
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("C", "M").WithLocation(6, 3),
35990
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M2").WithArguments("C", "M2").WithLocation(7, 3),
37423
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("int", "P").WithLocation(2, 7));
37503
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P<object>").WithArguments("string", "P").WithLocation(2, 7));
37558
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M<string>").WithArguments("string", "M").WithLocation(2, 3));
37578
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M<string>").WithArguments("string", "M").WithLocation(2, 3));
37734
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P<object>").WithArguments("string", "P").WithLocation(2, 3));
49940
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("int", "P").WithLocation(2, 8));
Semantics\ExtensionTests2.cs (1)
36525
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "object.Property").WithArguments("object", "Property").WithLocation(1, 5),
Semantics\ParamsCollectionTests.cs (5)
1323
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, @"[""2"", 3]").WithArguments("string", "Add").WithLocation(20, 14),
1338
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "[3]").WithArguments("string", "Add").WithLocation(24, 14),
2464
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, @"[""2"", 3]").WithArguments("string", "Add").WithLocation(17, 14),
15910
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M1").WithArguments("System.Collections.Generic.IEnumerable<long>", "M1").WithLocation(8, 11),
15913
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M2").WithArguments("long[]", "M2").WithLocation(9, 11)
Semantics\PatternMatchingTests_ListPatterns.cs (2)
4072
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Value").WithArguments("int", "Value").WithLocation(14, 19),
4078
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Value").WithArguments("int", "Value").WithLocation(16, 16)
Semantics\PatternMatchingTests_NullableTypes.cs (2)
66
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(1, 2)").WithArguments("int", "Deconstruct").WithLocation(11, 32),
135
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(1, 2)").WithArguments("int[]", "Deconstruct").WithLocation(11, 34),
Semantics\PatternMatchingTests2.cs (1)
1174
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(1, 2)").WithArguments("object", "Deconstruct").WithLocation(8, 18),
Semantics\PatternMatchingTests3.cs (1)
1928
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(var x1, var x2)").WithArguments("object", "Deconstruct").WithLocation(9, 32),
Semantics\PatternMatchingTests4.cs (5)
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),
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),
7207
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(_, _)").WithArguments("System.Runtime.CompilerServices.ITuple", "Deconstruct").WithLocation(12, 21),
Semantics\PatternSwitchTests.cs (17)
1688
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int, int)").WithArguments("object", "Deconstruct").WithLocation(21, 18),
1700
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int x, int y)").WithArguments("object", "Deconstruct").WithLocation(22, 18),
1706
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int, int)").WithArguments("object", "Deconstruct").WithLocation(23, 18),
1718
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int a, int b)").WithArguments("object", "Deconstruct").WithLocation(24, 18),
1724
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(long, long)").WithArguments("object", "Deconstruct").WithLocation(25, 18),
1736
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int, int)").WithArguments("object", "Deconstruct").WithLocation(30, 18),
1748
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(long, long)").WithArguments("object", "Deconstruct").WithLocation(32, 18),
1760
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(System.Int32, System.Int32)").WithArguments("object", "Deconstruct").WithLocation(37, 18),
1766
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(System.Int64, System.Int64)").WithArguments("object", "Deconstruct").WithLocation(39, 18),
1772
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int, int)").WithArguments("object", "Deconstruct").WithLocation(43, 22),
1784
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int x, int y)").WithArguments("object", "Deconstruct").WithLocation(44, 22),
1790
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int, int)").WithArguments("object", "Deconstruct").WithLocation(45, 22),
1802
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(int a, int b)").WithArguments("object", "Deconstruct").WithLocation(46, 22),
1808
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(System.Int32, System.Int32)").WithArguments("object", "Deconstruct").WithLocation(49, 22),
1814
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(System.Int32 x, System.Int32 y)").WithArguments("object", "Deconstruct").WithLocation(50, 22),
1820
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "(System.Int32, System.Int32)").WithArguments("object", "Deconstruct").WithLocation(51, 22),
1826
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 (5)
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)
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));
14545
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "BeginInvoke").WithArguments("<anonymous delegate>", "BeginInvoke").WithLocation(12, 25),
14548
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "EndInvoke").WithArguments("<anonymous delegate>", "EndInvoke").WithLocation(13, 12),
14551
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "BeginInvoke").WithArguments("<anonymous delegate>", "BeginInvoke").WithLocation(19, 25),
14554
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\ImplicitObjectCreationTests.cs (6)
5731
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "new(out var u)").WithArguments("C", "Add").WithLocation(22, 19),
5773
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "new(out var v)").WithArguments("C", "Add").WithLocation(23, 19),
5776
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "v").WithArguments("C", "Add").WithLocation(23, 35)
5891
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "{new(out var u), null}").WithArguments("C", "Add").WithLocation(22, 19),
5894
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "{u, null}").WithArguments("C", "Add").WithLocation(22, 43)
5933
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "{new(out var v), v}").WithArguments("C", "Add").WithLocation(23, 19),
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)
4408
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Literal").WithArguments("CustomHandler", "AppendLiteral").WithLocation(4, 21),
4414
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "{1}").WithArguments("CustomHandler", "AppendFormatted").WithLocation(4, 28),
Semantics\LocalFunctionTests.cs (2)
9159
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Constant").WithArguments("int", "Constant").WithLocation(13, 30),
9162
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 (21)
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),
28912
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "B").WithArguments("string", "B").WithLocation(13, 16));
47158
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Value").WithArguments("T", "Value").WithLocation(87, 17),
47164
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Value").WithArguments("T", "Value").WithLocation(91, 17),
47170
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Value").WithArguments("T", "Value").WithLocation(96, 17),
47176
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Value").WithArguments("T", "Value").WithLocation(100, 17)
62829
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Missing").WithArguments("<empty anonymous type>", "Missing").WithLocation(5, 17),
62832
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Missing").WithArguments("<anonymous type: T t>", "Missing").WithLocation(7, 19));
62916
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "AsQueryable").WithArguments("<anonymous type: int? X>[]", "AsQueryable").WithLocation(6, 57),
62919
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "AsQueryable").WithArguments("<anonymous type: int? X>[]", "AsQueryable").WithLocation(7, 57));
78546
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Value").WithArguments("int", "Value").WithLocation(15, 17)
82671
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "c").WithArguments("C", "Deconstruct").WithLocation(5, 22),
88991
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "x").WithArguments("(object, int)", "x").WithLocation(13, 22));
88997
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "x").WithArguments("(object, int)", "x").WithLocation(13, 22));
89023
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "x").WithArguments("(object, int)", "x").WithLocation(13, 42));
130158
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Value").WithArguments("U", "Value").WithLocation(16, 20),
131264
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Lalala").WithArguments("int?", "Lalala").WithLocation(17, 11)
134922
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "new C(z = 1)").WithArguments("C", "Deconstruct").WithLocation(7, 22),
134948
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "new C(z = 1)").WithArguments("C", "Deconstruct").WithLocation(7, 34),
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)
2686
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Literal").WithArguments("CustomHandler", "AppendLiteral").WithLocation(4, 23),
2692
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 (10)
13702
new ErrorDescription[] { new ErrorDescription { Code = (int)ErrorCode.
ERR_NoSuchMemberOrExtension
, Line = 25, Column = 13 } });
13720
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "value__").WithArguments("E", "value__").WithLocation(6, 22));
13744
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("A", "F"),
13745
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("A", "P"),
13746
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Q").WithArguments("A", "Q"),
13747
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "F").WithArguments("B", "F"),
13748
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "P").WithArguments("B", "P"),
13749
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Q").WithArguments("B", "Q"));
13766
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item").WithArguments("System.Collections.Generic.List<object>", "Item").WithLocation(6, 25),
13767
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Item").WithArguments("System.Collections.Generic.List<object>", "Item").WithLocation(7, 14));
Semantics\UseSiteErrorTests.cs (1)
945
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "Invoke").WithArguments("DelegateWithoutInvoke.DelegateSubWithoutInvoke", "Invoke").WithLocation(14, 21),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (58)
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)
50176
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M1").WithArguments("I2", "M1").WithLocation(17, 11)
Symbols\ExtensionMethodTests.cs (18)
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),
4389
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("int*", "M").WithLocation(4, 9));
4438
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("object", "M").WithLocation(2, 5));
4486
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("delegate*<void>", "M").WithLocation(4, 9));
Symbols\FunctionPointerTypeSymbolTests.cs (2)
1349
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M1").WithArguments("delegate*<void>", "M1").WithLocation(7, 13)
1396
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "M").WithArguments("delegate*<void>", "M").WithLocation(7, 13));
Symbols\GenericConstraintTests.cs (10)
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));
7245
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "GetServiceA<>").WithArguments("I", "GetServiceA").WithLocation(11, 18),
7251
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "GetServiceA<>").WithArguments("I", "GetServiceA").WithLocation(12, 18),
7263
Diagnostic(ErrorCode.
ERR_NoSuchMemberOrExtension
, "GetServiceC<>").WithArguments("I", "GetServiceC").WithLocation(17, 18),
7269
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")