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)
1904
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)
8539
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
8584
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "e").WithArguments("System.Collections.Generic.IAsyncEnumerable<int>", "GetAsyncEnumerator").WithLocation(8, 33)
8630
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "c").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
8676
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "c").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
8835
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
8860
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
9924
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "(object)null").WithArguments("object", "GetAsyncEnumerator").WithLocation(8, 33)
10487
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(10, 33)
10523
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "1").WithArguments("int", "GetAsyncEnumerator").WithLocation(8, 33)
10559
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new object()").WithArguments("object", "GetAsyncEnumerator").WithLocation(8, 33)
10595
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "(int?)1").WithArguments("int?", "GetAsyncEnumerator").WithLocation(8, 33)
10632
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "0").WithArguments("int", "GetAsyncEnumerator").WithLocation(9, 33)
12054
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
12094
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
12134
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
12235
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
12279
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(12, 33)
12485
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
12580
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
12741
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33),
13765
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMember
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(8, 33)
14218
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)