34 references to ERR_AwaitForEachMissingMember
Microsoft.CodeAnalysis.CSharp (4)
Binder\ForEachLoopBinder.cs (3)
810
(false, true, _) => ErrorCode.
ERR_AwaitForEachMissingMember
,
997
diagnostics.Add(ErrorCode.
ERR_AwaitForEachMissingMember
, collectionSyntax.Location, unwrappedCollectionExprType, WellKnownMemberNames.GetAsyncEnumeratorMethodName);
1122
diagnostics.Add(ErrorCode.
ERR_AwaitForEachMissingMember
, collectionSyntax.Location, unwrappedCollectionExprType, WellKnownMemberNames.GetAsyncEnumeratorMethodName);
Errors\ErrorFacts.cs (1)
1903
or ErrorCode.
ERR_AwaitForEachMissingMember
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (29)
CodeGen\CodeGenAwaitForeachTests.cs (29)
129
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "enumerator").WithArguments("System.Collections.Generic.IAsyncEnumerator<int>", "GetAsyncEnumerator").WithLocation(8, 33)
228
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(6, 33)
256
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(6, 33)
287
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(6, 33)
1360
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "collection").WithArguments("System.Collections.Generic.IAsyncEnumerable<int>", "GetAsyncEnumerator").WithLocation(12, 33)
1462
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(6, 33)
1897
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new D()").WithArguments("D", "GetAsyncEnumerator").WithLocation(6, 33)
5385
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
5430
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "e").WithArguments("System.Collections.Generic.IAsyncEnumerable<int>", "GetAsyncEnumerator").WithLocation(8, 33)
5476
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "c").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
5522
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "c").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
5652
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
5677
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
6247
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "(object)null").WithArguments("object", "GetAsyncEnumerator").WithLocation(8, 33)
6575
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(10, 33)
6611
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "1").WithArguments("int", "GetAsyncEnumerator").WithLocation(8, 33)
6647
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new object()").WithArguments("object", "GetAsyncEnumerator").WithLocation(8, 33)
6683
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "(int?)1").WithArguments("int?", "GetAsyncEnumerator").WithLocation(8, 33)
6720
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "0").WithArguments("int", "GetAsyncEnumerator").WithLocation(9, 33)
7516
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
7556
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
7596
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
7670
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
7714
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(12, 33)
7866
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
7933
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
8066
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33),
8657
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
9002
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
RefStructInterfacesTests.cs (1)
15729
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "default(T)").WithArguments("T", "GetAsyncEnumerator").WithLocation(39, 33)