5 references to ERR_AwaitForEachMissingMemberWrongAsync
Microsoft.CodeAnalysis.CSharp (2)
Binder\ForEachLoopBinder.cs (1)
731
? (isAsync ? ErrorCode.
ERR_AwaitForEachMissingMemberWrongAsync
: ErrorCode.ERR_ForEachMissingMemberWrongAsync)
Errors\ErrorFacts.cs (1)
1848
case ErrorCode.
ERR_AwaitForEachMissingMemberWrongAsync
:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenAwaitForeachTests.cs (3)
1536
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMemberWrongAsync
, "collection").WithArguments("System.Collections.Generic.IEnumerable<int>", "GetAsyncEnumerator").WithLocation(7, 33)
1624
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMemberWrongAsync
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(6, 33)
5955
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMemberWrongAsync
, @"$"" """).WithArguments("string", "GetAsyncEnumerator").WithLocation(8, 33));