238 references to ERR_NoSuchMember
Microsoft.CodeAnalysis.CSharp (10)
Binder\Binder_Await.cs (3)
381
Error(diagnostics, ErrorCode.
ERR_NoSuchMember
, node, awaiterType, WellKnownMemberNames.IsCompleted);
449
Error(diagnostics, ErrorCode.
ERR_NoSuchMember
, node, awaiterType, WellKnownMemberNames.GetResult);
459
Error(diagnostics, ErrorCode.
ERR_NoSuchMember
, node, awaiterType, WellKnownMemberNames.GetResult);
Binder\Binder_Expressions.cs (4)
1479
diagnostics.Add(ErrorCode.
ERR_NoSuchMember
, node, ContainingMember(), "field");
6089
Error(diagnostics, ErrorCode.
ERR_NoSuchMember
, memberNameSyntax, implicitReceiver.Type, member);
8211
Error(diagnostics, ErrorCode.
ERR_NoSuchMember
, name, boundLeft.Display, plainName);
8218
Error(diagnostics, ErrorCode.
ERR_NoSuchMember
, name, boundLeft.Type, plainName);
Binder\Binder_Patterns.cs (1)
1585
Error(diagnostics, ErrorCode.
ERR_NoSuchMember
, memberName, implicitReceiver.Type, name);
Binder\ForEachLoopBinder.cs (1)
1943
diagnostics.Add(ErrorCode.
ERR_NoSuchMember
, collectionSyntax.Location, patternType, memberName);
Errors\ErrorFacts.cs (1)
713
or ErrorCode.
ERR_NoSuchMember
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (27)
CodeGen\CodeGenAwaitForeachTests.cs (13)
707
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "c").WithArguments("System.Collections.Generic.IAsyncEnumerator<int>", "Current").WithLocation(8, 33),
896
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "c").WithArguments("System.Collections.Generic.IAsyncEnumerator<int>", "MoveNextAsync").WithLocation(8, 33),
1393
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "collection").WithArguments("System.Collections.Generic.IAsyncEnumerator<int>", "Current").WithLocation(18, 33),
1429
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "collection").WithArguments("System.Collections.Generic.IAsyncEnumerator<int>", "MoveNextAsync").WithLocation(18, 33),
3110
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new C()").WithArguments("C.Awaiter", "IsCompleted").WithLocation(7, 33)
7274
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new C()").WithArguments("C.Enumerator", "MoveNextAsync").WithLocation(8, 33),
7312
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new C()").WithArguments("C.Enumerator", "MoveNextAsync").WithLocation(8, 33),
7392
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new C()").WithArguments("C.Enumerator1", "Current").WithLocation(8, 33),
7789
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new C()").WithArguments("int", "Current").WithLocation(10, 33),
8258
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new C()").WithArguments("C.Enumerator", "MoveNextAsync").WithLocation(8, 33),
8302
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new C()").WithArguments("C.Enumerator1", "MoveNextAsync").WithLocation(8, 33),
8842
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new C()").WithArguments("int", "Current").WithLocation(27, 45),
8899
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new C()").WithArguments("int", "Current").WithLocation(14, 37),
CodeGen\CodeGenForEachTests.cs (8)
3482
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new C()").WithArguments("C.Enumerator", "MoveNext").WithLocation(7, 27),
3518
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new C()").WithArguments("C.Enumerator", "MoveNext").WithLocation(7, 27),
3595
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new C()").WithArguments("C.Enumerator1", "Current").WithLocation(7, 27),
3986
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new C()").WithArguments("int", "Current").WithLocation(9, 27),
4535
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new C()").WithArguments("C.Enumerator", "MoveNext").WithLocation(7, 27),
4577
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new C()").WithArguments("C.Enumerator1", "MoveNext").WithLocation(7, 27),
5140
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new C()").WithArguments("int", "Current").WithLocation(25, 39),
5196
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new C()").WithArguments("int", "Current").WithLocation(13, 31),
CodeGen\CodeGenFunctionPointersTests.cs (1)
4018
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "NonExistent").WithArguments("C", "NonExistent").WithLocation(6, 38),
CodeGen\CodeGenTupleTest.cs (5)
1190
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "a").WithArguments("(int, int)", "a").WithLocation(18, 40),
1193
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Item3").WithArguments("(int, int)", "Item3").WithLocation(18, 47)
25191
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M").WithArguments("(string, (int, (<null>, int)))", "M").WithLocation(13, 64),
25194
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "GetAwaiter").WithArguments("(string, lambda expression)", "GetAwaiter").WithLocation(15, 49)
25238
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M1").WithArguments("(int, <null>)", "M1"),
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
Emit\NumericIntPtrTests.cs (4)
882
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "F1").WithArguments("nint", "F1").WithLocation(6, 18),
888
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "F1").WithArguments("nuint", "F1").WithLocation(12, 19),
894
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "F1").WithArguments("nint", "F1").WithLocation(18, 20),
900
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "F1").WithArguments("nuint", "F1").WithLocation(24, 21),
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (104)
Attributes\InternalsVisibleToAndStrongNameTests.cs (1)
998
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "PrivateMethod").WithArguments("PublicClass", "PrivateMethod").WithLocation(9, 21),
Diagnostics\OperationAnalyzerTests.cs (1)
1706
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Nan").WithArguments("float", "Nan").WithLocation(6, 27),
FieldKeywordTests.cs (1)
448
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "field").WithArguments("C", "field").WithLocation(6, 29));
RefStructInterfacesTests.cs (4)
9311
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new S1()").WithArguments("S2", "Current").WithLocation(100, 27),
9324
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new S1()").WithArguments("S2", "MoveNext").WithLocation(100, 27),
19452
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new S1()").WithArguments("S2", "Current").WithLocation(100, 27),
19465
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new S1()").WithArguments("S2", "MoveNext").WithLocation(100, 27),
Semantics\ExtensionOperatorsTests.cs (9)
747
Diagnostic(ErrorCode.
ERR_NoSuchMember
, opName).WithArguments("S1", opName).WithLocation(7, 12)
2239
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "op_True").WithArguments("S1", "op_True").WithLocation(7, 12)
4780
Diagnostic(ErrorCode.
ERR_NoSuchMember
, opName).WithArguments("S1", opName).WithLocation(7, 12)
4899
Diagnostic(ErrorCode.
ERR_NoSuchMember
, opName).WithArguments("S1", opName).WithLocation(7, 12)
11524
Diagnostic(ErrorCode.
ERR_NoSuchMember
, opName).WithArguments("S1", opName).WithLocation(7, 12)
18830
Diagnostic(ErrorCode.
ERR_NoSuchMember
, opName).WithArguments("C1", opName).WithLocation(7, 12)
18957
Diagnostic(ErrorCode.
ERR_NoSuchMember
, opName).WithArguments("C1", opName).WithLocation(7, 12)
20251
Diagnostic(ErrorCode.
ERR_NoSuchMember
, opName).WithArguments("S1", opName).WithLocation(7, 12)
20378
Diagnostic(ErrorCode.
ERR_NoSuchMember
, opName).WithArguments("S1", opName).WithLocation(7, 12)
Semantics\ExtensionTests.cs (43)
610
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M").WithArguments("object", "M").WithLocation(1, 8),
638
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M").WithArguments("object", "M").WithLocation(1, 8),
676
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M").WithArguments("object", "M").WithLocation(1, 8),
679
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M").WithArguments("object", "M").WithLocation(7, 16),
723
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M").WithArguments("string", "M").WithLocation(1, 8),
726
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M").WithArguments("string", "M").WithLocation(7, 16),
729
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M").WithArguments("string", "M").WithLocation(14, 20),
759
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M").WithArguments("object", "M").WithLocation(1, 8),
783
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M").WithArguments("object", "M").WithLocation(1, 8),
2391
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Nested").WithArguments("object", "Nested").WithLocation(1, 8),
3770
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M").WithArguments("object", "M").WithLocation(1, 12),
8078
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M").WithArguments("object", "M").WithLocation(11, 23),
8081
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M").WithArguments("object", "M").WithLocation(21, 27)
9851
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "P").WithArguments("object", "P").WithLocation(11, 23),
9854
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "P").WithArguments("object", "P").WithLocation(19, 43)
13017
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new C()").WithArguments("D", "MoveNext").WithLocation(1, 19),
13062
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new C()").WithArguments("D", "Current").WithLocation(1, 19),
13949
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M").WithArguments("Base", "M").WithLocation(8, 14));
18279
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M<object, int>").WithArguments("object", "M").WithLocation(1, 14));
18530
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M").WithArguments("object", "M").WithLocation(1, 26),
18749
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M").WithArguments("System.Span<int>", "M").WithLocation(1, 36));
20238
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Method").WithArguments("object", "Method").WithLocation(1, 8),
20241
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Property").WithArguments("object", "Property").WithLocation(2, 12));
21108
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "P<int>").WithArguments("object", "P").WithLocation(1, 8),
21117
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "P<>").WithArguments("object", "P").WithLocation(2, 8));
21150
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new C()").WithArguments("D", "Current").WithLocation(1, 19),
21197
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new C()").WithArguments("D", "Current").WithLocation(1, 19),
22434
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "await new C()").WithArguments("D", "IsCompleted").WithLocation(5, 9)
22689
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "await new C()").WithArguments("D", "GetResult").WithLocation(5, 9)
22720
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "await new C()").WithArguments("D", "GetResult").WithLocation(4, 9)
22757
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "await new C()").WithArguments("D", "GetResult").WithLocation(5, 9));
22820
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "await new C()").WithArguments("D", "GetResult").WithLocation(5, 9));
24719
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M<int>").WithArguments("object", "M").WithLocation(1, 8));
32408
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Const").WithArguments("int", "Const").WithLocation(1, 9),
32716
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M<string>").WithArguments("C<string, string>", "M").WithLocation(1, 19));
34417
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "P").WithArguments("C", "P").WithLocation(1, 11),
35754
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new C()").WithArguments("C.Enumerator", "MoveNext").WithLocation(7, 27),
35787
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new C()").WithArguments("C.Enumerator", "MoveNext").WithLocation(6, 27),
35827
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new C()").WithArguments("C.Enumerator", "MoveNext").WithLocation(3, 19),
35891
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new C()").WithArguments("C.Enumerator", "MoveNext").WithLocation(3, 19),
35951
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new C()").WithArguments("C.Enumerator", "MoveNextAsync").WithLocation(1, 25),
35979
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new C()").WithArguments("C.Enumerator", "MoveNextAsync").WithLocation(1, 25),
43022
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M").WithArguments("int", "M").WithLocation(1, 5));
Semantics\ExtensionTests2.cs (13)
2770
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M").WithArguments("int", "M").WithLocation(1, 5));
2861
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M").WithArguments("int", "M").WithLocation(1, 5));
2903
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M").WithArguments("int", "M").WithLocation(1, 5));
2946
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M").WithArguments("int", "M").WithLocation(1, 5));
2988
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M").WithArguments("int", "M").WithLocation(1, 5));
3030
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M").WithArguments("int", "M").WithLocation(1, 5));
3061
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M").WithArguments("int", "M").WithLocation(1, 5));
3112
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M").WithArguments("int", "M").WithLocation(1, 5));
3490
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M").WithArguments("int", "M").WithLocation(1, 5));
3536
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M").WithArguments("int", "M").WithLocation(1, 5));
3580
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M").WithArguments("int", "M").WithLocation(1, 5));
3624
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M").WithArguments("int", "M").WithLocation(1, 5));
3673
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M").WithArguments("int", "M").WithLocation(1, 5));
Semantics\InlineArrayTests.cs (1)
19785
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "x").WithArguments("System.ReadOnlySpan<int>.Enumerator", "Current").WithLocation(6, 26),
Semantics\OutVarTests.cs (1)
33350
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "_").WithArguments("C", "_").WithLocation(11, 19)
Semantics\ParamsCollectionTests.cs (3)
1614
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "params MyCollection a").WithArguments("MyCollection", "Add").WithLocation(20, 22)
1752
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "params MyCollection a").WithArguments("MyCollection", "Add").WithLocation(25, 22)
4942
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "params C1 x").WithArguments("C1", "Add").WithLocation(7, 27)
Semantics\PatternMatchingTests.cs (2)
8579
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Length").WithArguments("System.ReadOnlySpan<char>", "Length").WithLocation(8, 20),
10183
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Length").WithArguments("System.Span<char>", "Length").WithLocation(8, 20),
Semantics\PatternMatchingTests2.cs (2)
1868
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "X").WithArguments("Blah", "X").WithLocation(6, 25)
1923
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "X").WithArguments("Blah", "X").WithLocation(8, 25)
Semantics\PatternMatchingTests3.cs (1)
155
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "X").WithArguments("Point", "X").WithLocation(8, 34)
Semantics\PatternMatchingTests5.cs (11)
764
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Missing").WithArguments("C", "Missing").WithLocation(9, 26),
767
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Missing").WithArguments("C", "Missing").WithLocation(10, 33),
770
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Missing1").WithArguments("C", "Missing1").WithLocation(11, 26)
790
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Missing").WithArguments("C", "Missing").WithLocation(6, 23)
836
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Missing").WithArguments("int", "Missing").WithLocation(7, 32)
890
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Missing1").WithArguments("C", "Missing1").WithLocation(6, 23)
1232
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "X").WithArguments("P", "X").WithLocation(8, 34)
1940
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Error").WithArguments("string", "Error").WithLocation(4, 12),
1943
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Error").WithArguments("string", "Error").WithLocation(5, 12),
1946
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Error").WithArguments("int", "Error").WithLocation(6, 22),
1949
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Error").WithArguments("int", "Error").WithLocation(7, 19)
Semantics\RecordTests.cs (11)
2391
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Y").WithArguments("B", "Y").WithLocation(12, 22)
2608
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "X").WithArguments("T", "X").WithLocation(6, 22)
2632
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "X").WithArguments("T", "X").WithLocation(8, 22)
2685
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "X").WithArguments("T", "X").WithLocation(6, 22)
2767
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "X").WithArguments("U", "X").WithLocation(11, 22),
2770
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Property").WithArguments("U", "Property").WithLocation(11, 29)
2777
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "X").WithArguments("U", "X").WithLocation(11, 22),
2780
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Property").WithArguments("U", "Property").WithLocation(11, 29)
4368
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "X").WithArguments("C", "X").WithLocation(7, 28)
4384
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "X").WithArguments("C", "X").WithLocation(7, 28)
8600
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "X").WithArguments("B", "X").WithLocation(14, 22)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (14)
IOperation\IOperationTests_IForEachLoopStatement.cs (3)
1831
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new Program()").WithArguments("bool", "Current").WithLocation(6, 47),
4839
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new Program()").WithArguments("bool", "Current").WithLocation(7, 31),
5357
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new Program()").WithArguments("bool", "Current").WithLocation(7, 37),
IOperation\IOperationTests_IInstanceReferenceTests.cs (1)
64
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "M1").WithArguments("object", "M1").WithLocation(8, 35)
IOperation\IOperationTests_IIsPatternExpression.cs (2)
1185
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "prop").WithArguments("C", "prop").WithLocation(6, 33)
1284
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "NotFound").WithArguments("(int X, int Y)", "NotFound").WithLocation(6, 41)
IOperation\IOperationTests_InvalidExpression.cs (1)
41
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "WriteLine2").WithArguments("System.Console", "WriteLine2").WithLocation(8, 27)
IOperation\IOperationTests_IObjectCreationExpression.cs (7)
1191
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "MissingMember").WithArguments("C", "MissingMember").WithLocation(6, 34)
1239
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "MissingField").WithArguments("C", "MissingField").WithLocation(6, 33)
1290
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "MissingField").WithArguments("C", "MissingField").WithLocation(7, 33)
3021
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "MissingMember").WithArguments("C", "MissingMember").WithLocation(6, 38)
3069
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "MissingField").WithArguments("C", "MissingField").WithLocation(6, 37)
3121
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "MissingField").WithArguments("C", "MissingField").WithLocation(8, 37)
9763
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "C21").WithArguments("Class", "C21").WithLocation(6, 31)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (56)
Semantics\BindingAwaitTests.cs (6)
1796
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "await new Awaitable<T3>()").WithArguments("T3", "IsCompleted").WithLocation(52, 9));
1989
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "await new A()").WithArguments("Awaiter", "IsCompleted"));
2024
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "await new A()").WithArguments("Awaiter", "IsCompleted"));
2273
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "await new A()").WithArguments("Awaiter", "GetResult"));
2385
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "await new A()").WithArguments("Awaiter", "GetResult"));
2522
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "await new A()").WithArguments("Awaiter", "IsCompleted"));
Semantics\DelegateTypeTests.cs (1)
3811
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "F").WithArguments("A", "F").WithLocation(16, 21));
Semantics\ForEachTests.cs (11)
326
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "e").WithArguments("Enumerator?", "Current"),
359
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new Enumerable()").WithArguments("Enumerator", "Current"),
523
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new Enumerable()").WithArguments("Enumerator", "MoveNext"),
751
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new Enumerable()").WithArguments("Enumerator", "Current"),
1021
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "e").WithArguments("dynamic", "Current"),
2055
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new ValidBaseTest.Derived5()").WithArguments("void", "Current").WithLocation(35, 31),
2065
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "new ValidBaseTest.Derived5()").WithArguments("void", "Current").WithLocation(35, 31),
2458
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "e1").WithArguments("System.Collections.Generic.IEnumerator<C>", "MoveNext"),
2528
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "e1").WithArguments("System.Collections.Generic.IEnumerator<C>", "Current"),
2708
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "e1").WithArguments("System.Collections.IEnumerator", "MoveNext"),
2771
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "e1").WithArguments("System.Collections.IEnumerator", "Current"),
Semantics\ImplicitObjectCreationTests.cs (1)
1701
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "X").WithArguments("C", "X").WithLocation(11, 19)
Semantics\InheritanceBindingTests.cs (6)
7240
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Property").WithArguments("object", "Property"),
7243
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Method<T>").WithArguments("object", "Method"),
7246
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Method").WithArguments("object", "Method"),
7249
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Property").WithArguments("object", "Property"),
7252
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Method<T>").WithArguments("object", "Method"),
7255
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Method").WithArguments("object", "Method"));
Semantics\InterpolationTests.cs (1)
1039
Diagnostic(ErrorCode.
ERR_NoSuchMember
, @"$""X = { 1 } """).WithArguments("string", "Format").WithLocation(15, 21)
Semantics\LambdaTests.cs (1)
1142
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Run").WithArguments("System.Threading.Tasks.Task", "Run").WithLocation(10, 25),
Semantics\NameOfTests.cs (2)
263
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "s2").WithArguments("Program", "s2").WithLocation(23, 28),
266
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Something").WithArguments("object", "Something").WithLocation(24, 27),
Semantics\NativeIntegerTests.cs (12)
1766
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Zero").WithArguments("nint", "Zero").WithLocation(5, 18),
1769
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Size").WithArguments("nint", "Size").WithLocation(6, 18),
1772
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Add").WithArguments("nint", "Add").WithLocation(9, 18),
1775
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Subtract").WithArguments("nint", "Subtract").WithLocation(10, 18),
1778
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Zero").WithArguments("nuint", "Zero").WithLocation(17, 19),
1781
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Size").WithArguments("nuint", "Size").WithLocation(18, 19),
1784
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Add").WithArguments("nuint", "Add").WithLocation(21, 19),
1787
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Subtract").WithArguments("nuint", "Subtract").WithLocation(22, 19));
2554
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "F1").WithArguments("nint", "F1").WithLocation(16, 22),
2560
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "F1").WithArguments("nuint", "F1").WithLocation(28, 23),
2626
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "F1").WithArguments("nint", "F1").WithLocation(5, 18),
2632
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "F1").WithArguments("nuint", "F1").WithLocation(11, 19),
Semantics\NullableReferenceTypesTests.cs (4)
1681
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "field").WithArguments("NS.C", "field").WithLocation(10, 23),
1687
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "field").WithArguments("NS.C", "field").WithLocation(11, 23),
26916
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "HasValue").WithArguments("int", "HasValue").WithLocation(10, 20),
161104
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "B").WithArguments("S", "B").WithLocation(12, 24)
Semantics\ObjectAndCollectionInitializerTests.cs (2)
1069
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "x").WithArguments("int", "x").WithLocation(6, 39)
1511
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "x").WithArguments("T", "x").WithLocation(6, 37),
Semantics\RawInterpolationTests.cs (1)
1039
Diagnostic(ErrorCode.
ERR_NoSuchMember
, @"$""""""X = { 1 } """"""").WithArguments("string", "Format").WithLocation(15, 21));
Semantics\RecordStructTests.cs (4)
2639
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "P3").WithArguments("R", "P3").WithLocation(2, 28)
7230
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "i").WithArguments("B", "i").WithLocation(8, 28),
9610
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Error").WithArguments("<anonymous type: int A>", "Error").WithLocation(7, 26)
9999
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "i").WithArguments("<anonymous type: int A>", "i").WithLocation(7, 26),
Semantics\SemanticErrorTests.cs (4)
2840
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "F").WithArguments("C", "F"),
2841
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "A").WithArguments("E", "A"),
2842
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "P").WithArguments("C", "P"),
2843
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Q").WithArguments("C", "Q"));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (21)
Symbols\AnonymousTypesSemanticsTests.cs (4)
1133
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "BB").WithArguments("ClassA", "BB"),
1136
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "CCC").WithArguments("ClassA", "CCC")
1308
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "BB").WithArguments("ClassA", "BB").WithLocation(20, 24),
1311
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "CCC").WithArguments("ClassA", "CCC").WithLocation(21, 24)
Symbols\DefaultInterfaceImplementationTests.cs (1)
44572
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "I8").WithArguments("I8", "I8").WithLocation(41, 12),
Symbols\EnumTests.cs (2)
99
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "B").WithArguments("E", "B"),
102
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "C").WithArguments("E", "C"));
Symbols\ExtensionMethodTests.cs (1)
1618
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "E").WithArguments("C", "E").WithLocation(8, 14));
Symbols\IndexerTests.cs (2)
2105
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Fake").WithArguments("A", "Fake"),
2108
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Fake").WithArguments("B", "Fake"));
Symbols\LocalFunctionTests.cs (4)
320
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "MyExtension").WithArguments("Base", "MyExtension").WithLocation(14, 27),
326
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "MyExtension").WithArguments("Base", "MyExtension").WithLocation(15, 44));
399
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "MyExtension").WithArguments("Base", "MyExtension").WithLocation(14, 31),
402
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "MyExtension").WithArguments("Base", "MyExtension").WithLocation(15, 48));
Symbols\RequiredMembersTests.cs (2)
7043
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "T").WithArguments("C", "T").WithLocation(12, 23)
7088
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "T").WithArguments("C", "T").WithLocation(12, 23)
Symbols\Source\FileModifierTests.cs (1)
3261
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "C").WithArguments("Outer", "C").WithLocation(5, 15),
Symbols\Source\PropertyTests.cs (4)
535
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Static").WithArguments("Mismatched", "Static"),
538
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Static").WithArguments("Mismatched", "Static"));
627
new ErrorDescription { Code = (int)ErrorCode.
ERR_NoSuchMember
, Line = 6, Column = 34 });
1628
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Goo").WithArguments("B", "Goo"));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Parsing\ParserErrorMessageTests.cs (2)
6234
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Goo").WithArguments("C", "Goo").WithLocation(6, 24));
6241
Diagnostic(ErrorCode.
ERR_NoSuchMember
, "Goo").WithArguments("C", "Goo").WithLocation(6, 24));