1 instantiation of ForEachEnumeratorInfo
Microsoft.CodeAnalysis.CSharp (1)
Binder\ForEachEnumeratorInfo.cs (1)
134return new ForEachEnumeratorInfo(
81 references to ForEachEnumeratorInfo
Microsoft.CodeAnalysis.CSharp (48)
Binder\Binder_Conversions.cs (2)
1172var enumeratorInfo = element.EnumeratorInfoOpt; 2383var enumeratorInfo = spreadElement.EnumeratorInfoOpt;
Binder\Binder_Expressions.cs (3)
5388ForEachEnumeratorInfo.Builder builder; 5410var enumeratorInfo = builder.Build(location: default); 6718var enumeratorInfo = element.EnumeratorInfoOpt;
Binder\ForEachEnumeratorInfo.cs (1)
125public ForEachEnumeratorInfo Build(BinderFlags location)
Binder\ForEachLoopBinder.cs (19)
226ForEachEnumeratorInfo.Builder builder; 613private bool GetAwaitDisposeAsyncInfo(ref ForEachEnumeratorInfo.Builder builder, BindingDiagnosticBag diagnostics) 690out ForEachEnumeratorInfo.Builder builder) 785out ForEachEnumeratorInfo.Builder builder) 835private EnumeratorResult GetEnumeratorInfoCore(SyntaxNode syntax, SyntaxNode collectionSyntax, ref BoundExpression collectionExpr, bool isAsync, BindingDiagnosticBag diagnostics, out ForEachEnumeratorInfo.Builder builder) 862builder = new ForEachEnumeratorInfo.Builder(); 871builder = new ForEachEnumeratorInfo.Builder(); 919builder = new ForEachEnumeratorInfo.Builder(); 937EnumeratorResult getEnumeratorInfo(SyntaxNode syntax, SyntaxNode collectionSyntax, ref BoundExpression collectionExpr, bool isAsync, BindingDiagnosticBag diagnostics, out ForEachEnumeratorInfo.Builder builder) 939builder = new ForEachEnumeratorInfo.Builder(); 1030EnumeratorResult createPatternBasedEnumeratorResult(ref ForEachEnumeratorInfo.Builder builder, BoundExpression collectionExpr, bool isAsync, bool viaExtensionMethod, BindingDiagnosticBag diagnostics) 1070private EnumeratorResult SatisfiesIEnumerableInterfaces(SyntaxNode collectionSyntax, ref ForEachEnumeratorInfo.Builder builder, BoundExpression collectionExpr, bool isAsync, BindingDiagnosticBag diagnostics, TypeSymbol unwrappedCollectionExprType) 1197private void GetDisposalInfoForEnumerator(SyntaxNode syntax, ref ForEachEnumeratorInfo.Builder builder, BoundExpression expr, bool isAsync, BindingDiagnosticBag diagnostics) 1293private ForEachEnumeratorInfo.Builder GetDefaultEnumeratorInfo(SyntaxNode syntax, ForEachEnumeratorInfo.Builder builder, BindingDiagnosticBag diagnostics, TypeSymbol collectionExprType) 1333/// <param name="builder">Builder to fill in. <see cref="ForEachEnumeratorInfo.Builder.GetEnumeratorInfo"/> set if the pattern in satisfied.</param> 1338private bool SatisfiesGetEnumeratorPattern(SyntaxNode syntax, SyntaxNode collectionSyntax, ref ForEachEnumeratorInfo.Builder builder, BoundExpression collectionExpr, bool isAsync, bool viaExtensionMethod, BindingDiagnosticBag diagnostics) 1636private bool SatisfiesForEachPattern(SyntaxNode syntax, SyntaxNode collectionSyntax, ref ForEachEnumeratorInfo.Builder builder, bool isAsync, BindingDiagnosticBag diagnostics) 1795ref ForEachEnumeratorInfo.Builder builder,
Binder\Semantics\Conversions\Conversions.cs (1)
236var enumeratorInfo = element.EnumeratorInfoOpt;
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (1)
711var enumeratorInfo = argument.EnumeratorInfoOpt;
Compilation\MemberSemanticModel.cs (1)
983ForEachEnumeratorInfo enumeratorInfoOpt = boundForEach.EnumeratorInfoOpt;
FlowAnalysis\NullableWalker.cs (1)
12313ForEachEnumeratorInfo? enumeratorInfoOpt)
FlowAnalysis\NullableWalker.DebugVerifier.cs (1)
242private void VisitForEachEnumeratorInfo(ForEachEnumeratorInfo enumeratorInfo)
Generated\BoundNodes.xml.Generated.cs (6)
4096public BoundForEachStatement(SyntaxNode syntax, ForEachEnumeratorInfo? enumeratorInfoOpt, BoundValuePlaceholder? elementPlaceholder, BoundExpression? elementConversion, BoundTypeExpression iterationVariableType, ImmutableArray<LocalSymbol> iterationVariables, BoundExpression? iterationErrorExpressionOpt, BoundExpression expression, BoundForEachDeconstructStep? deconstructionOpt, BoundStatement body, LabelSymbol breakLabel, LabelSymbol continueLabel, bool hasErrors = false) 4118public ForEachEnumeratorInfo? EnumeratorInfoOpt { get; } 4131public BoundForEachStatement Update(ForEachEnumeratorInfo? enumeratorInfoOpt, BoundValuePlaceholder? elementPlaceholder, BoundExpression? elementConversion, BoundTypeExpression iterationVariableType, ImmutableArray<LocalSymbol> iterationVariables, BoundExpression? iterationErrorExpressionOpt, BoundExpression expression, BoundForEachDeconstructStep? deconstructionOpt, BoundStatement body, LabelSymbol breakLabel, LabelSymbol continueLabel) 6642public BoundCollectionExpressionSpreadElement(SyntaxNode syntax, BoundExpression expression, BoundCollectionExpressionSpreadExpressionPlaceholder? expressionPlaceholder, BoundExpression? conversion, ForEachEnumeratorInfo? enumeratorInfoOpt, BoundExpression? lengthOrCount, BoundValuePlaceholder? elementPlaceholder, BoundStatement? iteratorBody, bool hasErrors = false) 6660public ForEachEnumeratorInfo? EnumeratorInfoOpt { get; } 6668public BoundCollectionExpressionSpreadElement Update(BoundExpression expression, BoundCollectionExpressionSpreadExpressionPlaceholder? expressionPlaceholder, BoundExpression? conversion, ForEachEnumeratorInfo? enumeratorInfoOpt, BoundExpression? lengthOrCount, BoundValuePlaceholder? elementPlaceholder, BoundStatement? iteratorBody)
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
1494var enumeratorInfo = node.EnumeratorInfoOpt;
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (10)
121ForEachEnumeratorInfo? enumeratorInfo = node.EnumeratorInfoOpt; 143ForEachEnumeratorInfo enumeratorInfo, 294private bool TryGetDisposeMethod(SyntaxNode forEachSyntax, ForEachEnumeratorInfo enumeratorInfo, out MethodSymbol disposeMethod) 319ForEachEnumeratorInfo enumeratorInfo, 599ForEachEnumeratorInfo enumeratorInfo, 706private delegate BoundStatement? GetForEachStatementAsForPreamble(LocalRewriter rewriter, SyntaxNode syntax, ForEachEnumeratorInfo enumeratorInfo, ref BoundExpression rewrittenExpression, out LocalSymbol? preambleLocal, out RefKind collectionTempRefKind); 707private delegate BoundExpression GetForEachStatementAsForItem<TArg>(LocalRewriter rewriter, SyntaxNode syntax, ForEachEnumeratorInfo enumeratorInfo, BoundLocal boundArrayVar, BoundLocal boundPositionVar, TArg arg); 714getItem: static (LocalRewriter rewriter, SyntaxNode syntax, ForEachEnumeratorInfo enumeratorInfo, BoundLocal boundArrayVar, BoundLocal boundPositionVar, (MethodSymbol indexerGet, MethodSymbol lengthGet) arg) => 745return static (LocalRewriter rewriter, SyntaxNode syntax, ForEachEnumeratorInfo enumeratorInfo, ref BoundExpression rewrittenExpression, out LocalSymbol? preambleLocal, out RefKind collectionTempRefKind) => 766return static (LocalRewriter rewriter, SyntaxNode syntax, ForEachEnumeratorInfo enumeratorInfo, BoundLocal boundArrayVar, BoundLocal boundPositionVar, object? _) =>
Operations\CSharpOperationFactory.cs (1)
1955ForEachEnumeratorInfo? enumeratorInfoOpt = boundForEachStatement.EnumeratorInfoOpt;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (12)
CodeGen\CodeGenAwaitForeachTests.cs (12)
2481ForEachEnumeratorInfo internalInfo = boundNode.EnumeratorInfoOpt; 4409ForEachEnumeratorInfo internalInfo = boundNode.EnumeratorInfoOpt; 4893ForEachEnumeratorInfo internalInfo = boundNode.EnumeratorInfoOpt; 5026ForEachEnumeratorInfo internalInfo = boundNode.EnumeratorInfoOpt; 5222ForEachEnumeratorInfo internalInfo = boundNode.EnumeratorInfoOpt; 5345ForEachEnumeratorInfo internalInfo = boundNode.EnumeratorInfoOpt; 5479ForEachEnumeratorInfo internalInfo = boundNode.EnumeratorInfoOpt; 6955ForEachEnumeratorInfo internalInfo = boundNode.EnumeratorInfoOpt; 7110ForEachEnumeratorInfo internalInfo = boundNode.EnumeratorInfoOpt; 7389ForEachEnumeratorInfo internalInfo = boundNode.EnumeratorInfoOpt; 8074ForEachEnumeratorInfo internalInfo = boundNode.EnumeratorInfoOpt; 8218ForEachEnumeratorInfo internalInfo = boundNode.EnumeratorInfoOpt;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (21)
Semantics\ForEachTests.cs (21)
1721ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 1759ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 1803ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 1847ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 1880ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 1920ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 1962ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 2001ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 2034ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 2065ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 2151ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 2182ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 2215ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 2256ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 2340ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 2387ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 3631ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 3677var enumeratorInfo = boundNode.EnumeratorInfoOpt; 3716var enumeratorInfo = boundNode.EnumeratorInfoOpt; 3749ForEachEnumeratorInfo info = boundNode.EnumeratorInfoOpt; 3783ForEachEnumeratorInfo enumeratorInfo = boundNode.EnumeratorInfoOpt;