37 references to ERR_BadGetAsyncEnumerator
Microsoft.CodeAnalysis.CSharp (3)
Binder\ForEachLoopBinder.cs (2)
268
diagnostics.Add(ErrorCode.
ERR_BadGetAsyncEnumerator
, expr.Location, getEnumeratorMethod.ReturnTypeWithAnnotations, getEnumeratorMethod);
1066
diagnostics.Add(isAsync ? ErrorCode.
ERR_BadGetAsyncEnumerator
: ErrorCode.ERR_BadGetEnumerator, collectionSyntax.Location, getEnumeratorMethod.ReturnType, getEnumeratorMethod);
Errors\ErrorFacts.cs (1)
1905
or ErrorCode.
ERR_BadGetAsyncEnumerator
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (28)
CodeGen\CodeGenAwaitForeachTests.cs (28)
534
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator()").WithLocation(6, 33)
568
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("Enumerator", "Extension.GetAsyncEnumerator(C)").WithLocation(6, 33)
576
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("Enumerator", "Extension.GetAsyncEnumerator(C)").WithLocation(6, 33)
604
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator()").WithLocation(6, 33)
640
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator(System.Threading.CancellationToken)").WithLocation(6, 33)
670
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator()").WithLocation(6, 33)
698
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator()").WithLocation(6, 33)
731
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator(System.Threading.CancellationToken)").WithLocation(6, 33)
762
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator()").WithLocation(6, 33)
792
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator(System.Threading.CancellationToken)").WithLocation(6, 33)
837
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "c").WithArguments("System.Collections.Generic.IAsyncEnumerator<int>", "C.GetAsyncEnumerator(System.Threading.CancellationToken)").WithLocation(8, 33),
887
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "c").WithArguments("System.Collections.Generic.IAsyncEnumerator<int>", "C.GetAsyncEnumerator(System.Threading.CancellationToken)").WithLocation(8, 33)
923
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator(System.Threading.CancellationToken)").WithLocation(6, 33)
959
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator(System.Threading.CancellationToken)").WithLocation(6, 33)
1142
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "c").WithArguments("System.Collections.Generic.IAsyncEnumerator<int>", "C.GetAsyncEnumerator(System.Threading.CancellationToken)").WithLocation(8, 33)
2175
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "collection").WithArguments("System.Collections.Generic.IAsyncEnumerator<int>", "System.Collections.Generic.IAsyncEnumerable<int>.GetAsyncEnumerator(System.Threading.CancellationToken)").WithLocation(18, 33)
2211
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "collection").WithArguments("System.Collections.Generic.IAsyncEnumerator<int>", "System.Collections.Generic.IAsyncEnumerable<int>.GetAsyncEnumerator(System.Threading.CancellationToken)").WithLocation(18, 33)
2803
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new D()").WithArguments("D.Enumerator", "D.GetAsyncEnumerator(System.Threading.CancellationToken)").WithLocation(6, 33)
2840
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new D()").WithArguments("D.Enumerator", "D.GetAsyncEnumerator(System.Threading.CancellationToken)").WithLocation(6, 33)
2874
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new D()").WithArguments("D.Enumerator", "D.GetAsyncEnumerator()").WithLocation(6, 33)
11728
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("C.Enumerator", "Extensions.GetAsyncEnumerator(C)").WithLocation(8, 33)
11766
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator()").WithLocation(8, 33)
11873
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("C.Enumerator1", "C.GetAsyncEnumerator()").WithLocation(8, 33));
12384
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("int", "Extensions2.GetAsyncEnumerator(C)").WithLocation(10, 33)
13050
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("C.Enumerator", "Extensions.GetAsyncEnumerator(C)").WithLocation(8, 33)
13094
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("C.Enumerator1", "C.GetAsyncEnumerator()").WithLocation(8, 33)
14007
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("int", "N1.N2.Extensions.GetAsyncEnumerator(N1.N2.N3.C)").WithLocation(27, 45));
14064
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("int", "N3.Extensions.GetAsyncEnumerator(N1.C)").WithLocation(14, 37));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
RefStructInterfacesTests.cs (2)
16634
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "default(TEnumerable)").WithArguments("TEnumerator", "IGetEnumerator<TEnumerator>.GetAsyncEnumerator(System.Threading.CancellationToken)").WithLocation(52, 33)
16706
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "default(TEnumerable)").WithArguments("TEnumerator", "IGetEnumerator<TEnumerator>.GetAsyncEnumerator(System.Threading.CancellationToken)").WithLocation(53, 33)
Semantics\ExtensionTests.cs (2)
41039
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator()").WithLocation(1, 25));
41067
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new C()").WithArguments("C.Enumerator", "C.GetAsyncEnumerator()").WithLocation(1, 25));
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));
5360
Diagnostic(ErrorCode.
ERR_BadGetAsyncEnumerator
, "new Program()").WithArguments("bool", "Extensions.GetAsyncEnumerator(Program)").WithLocation(7, 37)