33 references to ERR_BadGetAsyncEnumerator
Microsoft.CodeAnalysis.CSharp (3)
Binder\ForEachLoopBinder.cs (2)
245
diagnostics.Add(ErrorCode.
ERR_BadGetAsyncEnumerator
, expr.Location, getEnumeratorMethod.ReturnTypeWithAnnotations, getEnumeratorMethod);
864
diagnostics.Add(isAsync ? ErrorCode.
ERR_BadGetAsyncEnumerator
: ErrorCode.ERR_BadGetEnumerator, _syntax.Expression.Location, getEnumeratorMethod.ReturnType, getEnumeratorMethod);
Errors\ErrorFacts.cs (1)
1845
case ErrorCode.
ERR_BadGetAsyncEnumerator
:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (28)
CodeGen\CodeGenAwaitForeachTests.cs (28)
357
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator()").WithLocation(6, 33)
391
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("Enumerator", "Extension.GetAsyncEnumerator(C)").WithLocation(6, 33)
399
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("Enumerator", "Extension.GetAsyncEnumerator(C)").WithLocation(6, 33)
427
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator()").WithLocation(6, 33)
463
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator(System.Threading.CancellationToken)").WithLocation(6, 33)
493
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator()").WithLocation(6, 33)
521
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator()").WithLocation(6, 33)
554
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator(System.Threading.CancellationToken)").WithLocation(6, 33)
585
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator()").WithLocation(6, 33)
615
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator(System.Threading.CancellationToken)").WithLocation(6, 33)
660
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "c").WithArguments("System.Collections.Generic.IAsyncEnumerator<int>", "C.GetAsyncEnumerator(System.Threading.CancellationToken)").WithLocation(8, 33),
710
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "c").WithArguments("System.Collections.Generic.IAsyncEnumerator<int>", "C.GetAsyncEnumerator(System.Threading.CancellationToken)").WithLocation(8, 33)
746
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator(System.Threading.CancellationToken)").WithLocation(6, 33)
782
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator(System.Threading.CancellationToken)").WithLocation(6, 33)
899
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "c").WithArguments("System.Collections.Generic.IAsyncEnumerator<int>", "C.GetAsyncEnumerator(System.Threading.CancellationToken)").WithLocation(8, 33)
1396
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "collection").WithArguments("System.Collections.Generic.IAsyncEnumerator<int>", "System.Collections.Generic.IAsyncEnumerable<int>.GetAsyncEnumerator(System.Threading.CancellationToken)").WithLocation(18, 33)
1432
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "collection").WithArguments("System.Collections.Generic.IAsyncEnumerator<int>", "System.Collections.Generic.IAsyncEnumerable<int>.GetAsyncEnumerator(System.Threading.CancellationToken)").WithLocation(18, 33)
1810
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new D()").WithArguments("D.Enumerator", "D.GetAsyncEnumerator(System.Threading.CancellationToken)").WithLocation(6, 33)
1847
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new D()").WithArguments("D.Enumerator", "D.GetAsyncEnumerator(System.Threading.CancellationToken)").WithLocation(6, 33)
1881
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new D()").WithArguments("D.Enumerator", "D.GetAsyncEnumerator()").WithLocation(6, 33)
6342
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("C.Enumerator", "Extensions.GetAsyncEnumerator(C)").WithLocation(8, 33)
6380
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator()").WithLocation(8, 33)
6460
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("C.Enumerator1", "C.GetAsyncEnumerator()").WithLocation(8, 33));
6857
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("int", "Extensions2.GetAsyncEnumerator(C)").WithLocation(10, 33)
7322
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("C.Enumerator", "Extensions.GetAsyncEnumerator(C)").WithLocation(8, 33)
7366
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("C.Enumerator1", "C.GetAsyncEnumerator()").WithLocation(8, 33)
7903
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("int", "N1.N2.Extensions.GetAsyncEnumerator(N1.N2.N3.C)").WithLocation(27, 45));
7960
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("int", "N3.Extensions.GetAsyncEnumerator(N1.C)").WithLocation(14, 37));
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
IOperation\IOperationTests_IForEachLoopStatement.cs (2)
1834
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new Program()").WithArguments("bool", "Extensions.GetAsyncEnumerator(Program)").WithLocation(6, 47));
5364
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new Program()").WithArguments("bool", "Extensions.GetAsyncEnumerator(Program)").WithLocation(7, 37)