33 references to ERR_AwaitForEachMissingMember
Microsoft.CodeAnalysis.CSharp (4)
Binder\ForEachLoopBinder.cs (3)
732
: (isAsync ? ErrorCode.
ERR_AwaitForEachMissingMember
: ErrorCode.ERR_ForEachMissingMember);
811
diagnostics.Add(ErrorCode.
ERR_AwaitForEachMissingMember
, _syntax.Expression.Location, unwrappedCollectionExprType, GetAsyncEnumeratorMethodName);
914
diagnostics.Add(ErrorCode.
ERR_AwaitForEachMissingMember
, _syntax.Expression.Location, unwrappedCollectionExprType, GetAsyncEnumeratorMethodName);
Errors\ErrorFacts.cs (1)
1844
case 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)
1770
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new D()").WithArguments("D", "GetAsyncEnumerator").WithLocation(6, 33)
4451
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
4496
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "e").WithArguments("System.Collections.Generic.IAsyncEnumerable<int>", "GetAsyncEnumerator").WithLocation(8, 33)
4542
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "c").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
4588
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "c").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
4718
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
4743
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
5313
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "(object)null").WithArguments("object", "GetAsyncEnumerator").WithLocation(8, 33)
5641
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(10, 33)
5677
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "1").WithArguments("int", "GetAsyncEnumerator").WithLocation(8, 33)
5713
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new object()").WithArguments("object", "GetAsyncEnumerator").WithLocation(8, 33)
5749
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "(int?)1").WithArguments("int?", "GetAsyncEnumerator").WithLocation(8, 33)
5786
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "0").WithArguments("int", "GetAsyncEnumerator").WithLocation(9, 33)
6581
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
6621
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
6661
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
6735
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
6779
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(12, 33)
6931
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
6998
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
7131
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33),
7715
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
8060
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)