26 references to EnumeratorResult
Microsoft.CodeAnalysis.CSharp (26)
Binder\ForEachLoopBinder.cs (26)
706EnumeratorResult found = GetEnumeratorInfo(ref builder, ref collectionExpr, isAsync, diagnostics); 709case EnumeratorResult.Succeeded: 711case EnumeratorResult.FailedAndReported: 728bool wrongAsync = GetEnumeratorInfo(ref ignoredBuilder, ref collectionExpr, !isAsync, BindingDiagnosticBag.Discarded) == EnumeratorResult.Succeeded; 746private EnumeratorResult GetEnumeratorInfo(ref ForEachEnumeratorInfo.Builder builder, ref BoundExpression collectionExpr, bool isAsync, BindingDiagnosticBag diagnostics) 759return EnumeratorResult.FailedAndReported; 767return EnumeratorResult.FailedAndReported; 773return EnumeratorResult.FailedAndReported; 781return EnumeratorResult.FailedAndReported; 784return EnumeratorResult.Succeeded; 795return EnumeratorResult.FailedAndReported; 805return EnumeratorResult.FailedAndReported; 812return EnumeratorResult.FailedAndReported; 815if (SatisfiesIEnumerableInterfaces(ref builder, unwrappedCollectionExpr, isAsync, diagnostics, unwrappedCollectionExprType) is not EnumeratorResult.FailedNotReported and var result) 830return EnumeratorResult.FailedAndReported; 834return EnumeratorResult.Succeeded; 842return EnumeratorResult.FailedNotReported; 844EnumeratorResult createPatternBasedEnumeratorResult(ref ForEachEnumeratorInfo.Builder builder, BoundExpression collectionExpr, bool isAsync, bool viaExtensionMethod, BindingDiagnosticBag diagnostics) 860return EnumeratorResult.Succeeded; 865return EnumeratorResult.FailedAndReported; 869private EnumeratorResult SatisfiesIEnumerableInterfaces(ref ForEachEnumeratorInfo.Builder builder, BoundExpression collectionExpr, bool isAsync, BindingDiagnosticBag diagnostics, TypeSymbol unwrappedCollectionExprType) 873return EnumeratorResult.FailedNotReported; 878return EnumeratorResult.FailedAndReported; 889return EnumeratorResult.FailedAndReported; 915return EnumeratorResult.FailedAndReported; 996return EnumeratorResult.Succeeded;