34 references to ERR_AwaitForEachMissingMember
Microsoft.CodeAnalysis.CSharp (4)
Binder\ForEachLoopBinder.cs (3)
813
(false, true, _) => ErrorCode.
ERR_AwaitForEachMissingMember
,
996
diagnostics.Add(ErrorCode.
ERR_AwaitForEachMissingMember
, collectionSyntax.Location, unwrappedCollectionExprType, WellKnownMemberNames.GetAsyncEnumeratorMethodName);
1111
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)
405
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(6, 33)
433
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(6, 33)
464
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(6, 33)
2139
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "collection").WithArguments("System.Collections.Generic.IAsyncEnumerable<int>", "GetAsyncEnumerator").WithLocation(12, 33)
2241
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(6, 33)
2763
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new D()").WithArguments("D", "GetAsyncEnumerator").WithLocation(6, 33)
8525
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
8570
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "e").WithArguments("System.Collections.Generic.IAsyncEnumerable<int>", "GetAsyncEnumerator").WithLocation(8, 33)
8616
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "c").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
8662
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "c").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
8821
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
8846
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
9910
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "(object)null").WithArguments("object", "GetAsyncEnumerator").WithLocation(8, 33)
10465
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(10, 33)
10501
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "1").WithArguments("int", "GetAsyncEnumerator").WithLocation(8, 33)
10537
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new object()").WithArguments("object", "GetAsyncEnumerator").WithLocation(8, 33)
10573
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "(int?)1").WithArguments("int?", "GetAsyncEnumerator").WithLocation(8, 33)
10610
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "0").WithArguments("int", "GetAsyncEnumerator").WithLocation(9, 33)
12032
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
12072
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
12112
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
12213
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
12257
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(12, 33)
12463
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
12558
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
12719
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33),
13743
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
14196
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
RefStructInterfacesTests.cs (1)
16127
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "default(T)").WithArguments("T", "GetAsyncEnumerator").WithLocation(39, 33)