34 references to ERR_AwaitForEachMissingMember
Microsoft.CodeAnalysis.CSharp (4)
Binder\ForEachLoopBinder.cs (3)
813
(false, true, _) => ErrorCode.
ERR_AwaitForEachMissingMember
,
1000
diagnostics.Add(ErrorCode.
ERR_AwaitForEachMissingMember
, collectionSyntax.Location, unwrappedCollectionExprType, WellKnownMemberNames.GetAsyncEnumeratorMethodName);
1125
diagnostics.Add(ErrorCode.
ERR_AwaitForEachMissingMember
, collectionSyntax.Location, unwrappedCollectionExprType, WellKnownMemberNames.GetAsyncEnumeratorMethodName);
Errors\ErrorFacts.cs (1)
1902
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)
10473
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(10, 33)
10509
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "1").WithArguments("int", "GetAsyncEnumerator").WithLocation(8, 33)
10545
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new object()").WithArguments("object", "GetAsyncEnumerator").WithLocation(8, 33)
10581
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "(int?)1").WithArguments("int?", "GetAsyncEnumerator").WithLocation(8, 33)
10618
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "0").WithArguments("int", "GetAsyncEnumerator").WithLocation(9, 33)
12040
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
12080
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
12120
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
12221
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
12265
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(12, 33)
12471
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
12566
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
12727
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33),
13751
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
14204
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)