1 instantiation of ForEachEnumeratorInfo
Microsoft.CodeAnalysis.CSharp (1)
Binder\ForEachEnumeratorInfo.cs (1)
125return new ForEachEnumeratorInfo(
81 references to ForEachEnumeratorInfo
Microsoft.CodeAnalysis.CSharp (48)
Binder\Binder_Conversions.cs (2)
988var enumeratorInfo = element.EnumeratorInfoOpt; 1812var enumeratorInfo = spreadElement.EnumeratorInfoOpt;
Binder\Binder_Expressions.cs (3)
5288ForEachEnumeratorInfo.Builder builder; 5308var enumeratorInfo = builder.Build(location: default); 6582var enumeratorInfo = element.EnumeratorInfoOpt;
Binder\ForEachEnumeratorInfo.cs (1)
116public ForEachEnumeratorInfo Build(BinderFlags location)
Binder\ForEachLoopBinder.cs (19)
226ForEachEnumeratorInfo.Builder builder; 608private bool GetAwaitDisposeAsyncInfo(ref ForEachEnumeratorInfo.Builder builder, BindingDiagnosticBag diagnostics) 682out ForEachEnumeratorInfo.Builder builder) 777out ForEachEnumeratorInfo.Builder builder) 827private EnumeratorResult GetEnumeratorInfoCore(SyntaxNode syntax, SyntaxNode collectionSyntax, ref BoundExpression collectionExpr, bool isAsync, BindingDiagnosticBag diagnostics, out ForEachEnumeratorInfo.Builder builder) 854builder = new ForEachEnumeratorInfo.Builder(); 863builder = new ForEachEnumeratorInfo.Builder(); 911builder = new ForEachEnumeratorInfo.Builder(); 929EnumeratorResult getEnumeratorInfo(SyntaxNode syntax, SyntaxNode collectionSyntax, ref BoundExpression collectionExpr, bool isAsync, BindingDiagnosticBag diagnostics, out ForEachEnumeratorInfo.Builder builder) 931builder = new ForEachEnumeratorInfo.Builder(); 1031EnumeratorResult createPatternBasedEnumeratorResult(ref ForEachEnumeratorInfo.Builder builder, BoundExpression collectionExpr, bool isAsync, bool viaExtensionMethod, BindingDiagnosticBag diagnostics) 1071private EnumeratorResult SatisfiesIEnumerableInterfaces(SyntaxNode collectionSyntax, ref ForEachEnumeratorInfo.Builder builder, BoundExpression collectionExpr, bool isAsync, BindingDiagnosticBag diagnostics, TypeSymbol unwrappedCollectionExprType) 1214private void GetDisposalInfoForEnumerator(SyntaxNode syntax, ref ForEachEnumeratorInfo.Builder builder, BoundExpression expr, bool isAsync, BindingDiagnosticBag diagnostics) 1307private ForEachEnumeratorInfo.Builder GetDefaultEnumeratorInfo(SyntaxNode syntax, ForEachEnumeratorInfo.Builder builder, BindingDiagnosticBag diagnostics, TypeSymbol collectionExprType) 1347/// <param name="builder">Builder to fill in. <see cref="ForEachEnumeratorInfo.Builder.GetEnumeratorInfo"/> set if the pattern in satisfied.</param> 1352private bool SatisfiesGetEnumeratorPattern(SyntaxNode syntax, SyntaxNode collectionSyntax, ref ForEachEnumeratorInfo.Builder builder, BoundExpression collectionExpr, bool isAsync, bool viaExtensionMethod, BindingDiagnosticBag diagnostics) 1643private bool SatisfiesForEachPattern(SyntaxNode syntax, SyntaxNode collectionSyntax, ref ForEachEnumeratorInfo.Builder builder, bool isAsync, BindingDiagnosticBag diagnostics) 1802ref ForEachEnumeratorInfo.Builder builder,
Binder\Semantics\Conversions\Conversions.cs (1)
235var enumeratorInfo = element.EnumeratorInfoOpt;
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (1)
709var enumeratorInfo = argument.EnumeratorInfoOpt;
Compilation\MemberSemanticModel.cs (1)
951ForEachEnumeratorInfo enumeratorInfoOpt = boundForEach.EnumeratorInfoOpt;
FlowAnalysis\NullableWalker.cs (1)
11570ForEachEnumeratorInfo? enumeratorInfoOpt,
FlowAnalysis\NullableWalker.DebugVerifier.cs (1)
229private void VisitForEachEnumeratorInfo(ForEachEnumeratorInfo enumeratorInfo)
Generated\BoundNodes.xml.Generated.cs (6)
4028public BoundForEachStatement(SyntaxNode syntax, ForEachEnumeratorInfo? enumeratorInfoOpt, BoundValuePlaceholder? elementPlaceholder, BoundExpression? elementConversion, BoundTypeExpression iterationVariableType, ImmutableArray<LocalSymbol> iterationVariables, BoundExpression? iterationErrorExpressionOpt, BoundExpression expression, BoundForEachDeconstructStep? deconstructionOpt, BoundAwaitableInfo? awaitOpt, BoundStatement body, LabelSymbol breakLabel, LabelSymbol continueLabel, bool hasErrors = false) 4051public ForEachEnumeratorInfo? EnumeratorInfoOpt { get; } 4065public BoundForEachStatement Update(ForEachEnumeratorInfo? enumeratorInfoOpt, BoundValuePlaceholder? elementPlaceholder, BoundExpression? elementConversion, BoundTypeExpression iterationVariableType, ImmutableArray<LocalSymbol> iterationVariables, BoundExpression? iterationErrorExpressionOpt, BoundExpression expression, BoundForEachDeconstructStep? deconstructionOpt, BoundAwaitableInfo? awaitOpt, BoundStatement body, LabelSymbol breakLabel, LabelSymbol continueLabel) 6498public BoundCollectionExpressionSpreadElement(SyntaxNode syntax, BoundExpression expression, BoundCollectionExpressionSpreadExpressionPlaceholder? expressionPlaceholder, BoundExpression? conversion, ForEachEnumeratorInfo? enumeratorInfoOpt, BoundExpression? lengthOrCount, BoundValuePlaceholder? elementPlaceholder, BoundStatement? iteratorBody, bool hasErrors = false) 6516public ForEachEnumeratorInfo? EnumeratorInfoOpt { get; } 6524public BoundCollectionExpressionSpreadElement Update(BoundExpression expression, BoundCollectionExpressionSpreadExpressionPlaceholder? expressionPlaceholder, BoundExpression? conversion, ForEachEnumeratorInfo? enumeratorInfoOpt, BoundExpression? lengthOrCount, BoundValuePlaceholder? elementPlaceholder, BoundStatement? iteratorBody)
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
1326var enumeratorInfo = node.EnumeratorInfoOpt;
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (10)
116ForEachEnumeratorInfo? enumeratorInfo = node.EnumeratorInfoOpt; 139ForEachEnumeratorInfo enumeratorInfo, 290private bool TryGetDisposeMethod(SyntaxNode forEachSyntax, ForEachEnumeratorInfo enumeratorInfo, out MethodSymbol disposeMethod) 310ForEachEnumeratorInfo enumeratorInfo, 587ForEachEnumeratorInfo enumeratorInfo, 694private delegate BoundStatement? GetForEachStatementAsForPreamble(LocalRewriter rewriter, SyntaxNode syntax, ForEachEnumeratorInfo enumeratorInfo, ref BoundExpression rewrittenExpression, out LocalSymbol? preambleLocal, out RefKind collectionTempRefKind); 695private delegate BoundExpression GetForEachStatementAsForItem<TArg>(LocalRewriter rewriter, SyntaxNode syntax, ForEachEnumeratorInfo enumeratorInfo, BoundLocal boundArrayVar, BoundLocal boundPositionVar, TArg arg); 702getItem: static (LocalRewriter rewriter, SyntaxNode syntax, ForEachEnumeratorInfo enumeratorInfo, BoundLocal boundArrayVar, BoundLocal boundPositionVar, (MethodSymbol indexerGet, MethodSymbol lengthGet) arg) => 733return static (LocalRewriter rewriter, SyntaxNode syntax, ForEachEnumeratorInfo enumeratorInfo, ref BoundExpression rewrittenExpression, out LocalSymbol? preambleLocal, out RefKind collectionTempRefKind) => 754return static (LocalRewriter rewriter, SyntaxNode syntax, ForEachEnumeratorInfo enumeratorInfo, BoundLocal boundArrayVar, BoundLocal boundPositionVar, object? _) =>
Operations\CSharpOperationFactory.cs (1)
1889ForEachEnumeratorInfo? enumeratorInfoOpt = boundForEachStatement.EnumeratorInfoOpt;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (12)
CodeGen\CodeGenAwaitForeachTests.cs (12)
1674ForEachEnumeratorInfo internalInfo = boundNode.EnumeratorInfoOpt; 2977ForEachEnumeratorInfo internalInfo = boundNode.EnumeratorInfoOpt; 3296ForEachEnumeratorInfo internalInfo = boundNode.EnumeratorInfoOpt; 3354ForEachEnumeratorInfo internalInfo = boundNode.EnumeratorInfoOpt; 3550ForEachEnumeratorInfo internalInfo = boundNode.EnumeratorInfoOpt; 3598ForEachEnumeratorInfo internalInfo = boundNode.EnumeratorInfoOpt; 3731ForEachEnumeratorInfo internalInfo = boundNode.EnumeratorInfoOpt; 4479ForEachEnumeratorInfo internalInfo = boundNode.EnumeratorInfoOpt; 4552ForEachEnumeratorInfo internalInfo = boundNode.EnumeratorInfoOpt; 4662ForEachEnumeratorInfo internalInfo = boundNode.EnumeratorInfoOpt; 5065ForEachEnumeratorInfo internalInfo = boundNode.EnumeratorInfoOpt; 5146ForEachEnumeratorInfo internalInfo = boundNode.EnumeratorInfoOpt;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (21)
Semantics\ForEachTests.cs (21)
1205ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 1243ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 1287ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 1331ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 1364ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 1404ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 1446ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 1485ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 1518ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 1549ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 1635ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 1666ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 1699ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 1740ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 1824ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 1871ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 3115ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 3161var enumeratorInfo = boundNode.EnumeratorInfoOpt; 3200var enumeratorInfo = boundNode.EnumeratorInfoOpt; 3233ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 3267ForEachEnumeratorInfo enumeratorInfo = boundNode.EnumeratorInfoOpt;