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; 1794var enumeratorInfo = spreadElement.EnumeratorInfoOpt;
Binder\Binder_Expressions.cs (3)
5286ForEachEnumeratorInfo.Builder builder; 5306var enumeratorInfo = builder.Build(location: default); 6580var 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) 1308private ForEachEnumeratorInfo.Builder GetDefaultEnumeratorInfo(SyntaxNode syntax, ForEachEnumeratorInfo.Builder builder, BindingDiagnosticBag diagnostics, TypeSymbol collectionExprType) 1348/// <param name="builder">Builder to fill in. <see cref="ForEachEnumeratorInfo.Builder.GetEnumeratorInfo"/> set if the pattern in satisfied.</param> 1353private bool SatisfiesGetEnumeratorPattern(SyntaxNode syntax, SyntaxNode collectionSyntax, ref ForEachEnumeratorInfo.Builder builder, BoundExpression collectionExpr, bool isAsync, bool viaExtensionMethod, BindingDiagnosticBag diagnostics) 1644private bool SatisfiesForEachPattern(SyntaxNode syntax, SyntaxNode collectionSyntax, ref ForEachEnumeratorInfo.Builder builder, bool isAsync, BindingDiagnosticBag diagnostics) 1803ref 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)
952ForEachEnumeratorInfo enumeratorInfoOpt = boundForEach.EnumeratorInfoOpt;
FlowAnalysis\NullableWalker.cs (1)
11709ForEachEnumeratorInfo? enumeratorInfoOpt,
FlowAnalysis\NullableWalker.DebugVerifier.cs (1)
229private void VisitForEachEnumeratorInfo(ForEachEnumeratorInfo enumeratorInfo)
Generated\BoundNodes.xml.Generated.cs (6)
4036public 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) 4059public ForEachEnumeratorInfo? EnumeratorInfoOpt { get; } 4073public 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) 6510public BoundCollectionExpressionSpreadElement(SyntaxNode syntax, BoundExpression expression, BoundCollectionExpressionSpreadExpressionPlaceholder? expressionPlaceholder, BoundExpression? conversion, ForEachEnumeratorInfo? enumeratorInfoOpt, BoundExpression? lengthOrCount, BoundValuePlaceholder? elementPlaceholder, BoundStatement? iteratorBody, bool hasErrors = false) 6528public ForEachEnumeratorInfo? EnumeratorInfoOpt { get; } 6536public 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)
121ForEachEnumeratorInfo? enumeratorInfo = node.EnumeratorInfoOpt; 144ForEachEnumeratorInfo enumeratorInfo, 295private bool TryGetDisposeMethod(SyntaxNode forEachSyntax, ForEachEnumeratorInfo enumeratorInfo, out MethodSymbol disposeMethod) 315ForEachEnumeratorInfo enumeratorInfo, 592ForEachEnumeratorInfo enumeratorInfo, 699private delegate BoundStatement? GetForEachStatementAsForPreamble(LocalRewriter rewriter, SyntaxNode syntax, ForEachEnumeratorInfo enumeratorInfo, ref BoundExpression rewrittenExpression, out LocalSymbol? preambleLocal, out RefKind collectionTempRefKind); 700private delegate BoundExpression GetForEachStatementAsForItem<TArg>(LocalRewriter rewriter, SyntaxNode syntax, ForEachEnumeratorInfo enumeratorInfo, BoundLocal boundArrayVar, BoundLocal boundPositionVar, TArg arg); 707getItem: static (LocalRewriter rewriter, SyntaxNode syntax, ForEachEnumeratorInfo enumeratorInfo, BoundLocal boundArrayVar, BoundLocal boundPositionVar, (MethodSymbol indexerGet, MethodSymbol lengthGet) arg) => 738return static (LocalRewriter rewriter, SyntaxNode syntax, ForEachEnumeratorInfo enumeratorInfo, ref BoundExpression rewrittenExpression, out LocalSymbol? preambleLocal, out RefKind collectionTempRefKind) => 759return 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)
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; 6953ForEachEnumeratorInfo internalInfo = boundNode.EnumeratorInfoOpt; 7109ForEachEnumeratorInfo internalInfo = boundNode.EnumeratorInfoOpt; 7388ForEachEnumeratorInfo internalInfo = boundNode.EnumeratorInfoOpt; 8073ForEachEnumeratorInfo internalInfo = boundNode.EnumeratorInfoOpt; 8217ForEachEnumeratorInfo 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;