1 write to Initializers
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
7158this.Initializers = initializers;
30 references to Initializers
Microsoft.CodeAnalysis.CSharp (30)
Binder\Binder_Attributes.cs (1)
1006initializer = VisitArguments(node.InitializerOpt.Initializers, diagnostics, ref attrHasErrors, curArgumentHasErrors);
Binder\Binder_Expressions.cs (1)
4325result = new BoundArrayInitialization(node, isInferred: false, result.Initializers, hasErrors: true);
BoundTree\Expression.cs (1)
133return arrayInitializer?.Initializers ?? ImmutableArray<BoundExpression>.Empty;
CodeGen\EmitArrayInitializer.cs (7)
47var initExprs = inits.Initializers; 146indices.Push(new IndexDesc(i, ((BoundArrayInitialization)inits[i]).Initializers)); 180indices.Push(new IndexDesc(i, ((BoundArrayInitialization)inits[i]).Initializers)); 310InitializerCountRecursive(asArrayInit.Initializers, ref initCount, ref constInits); 352SerializeArrayRecursive(bw, ((BoundArrayInitialization)init).Initializers); 482ImmutableArray<BoundExpression> initializers = initializer.Initializers; 694var initializers = initializer.Initializers;
CodeGen\EmitExpression.cs (1)
2413foreach (var init in initializer.Initializers)
CodeGen\EmitStackAllocInitializer.cs (1)
31var initExprs = inits.Initializers;
CodeGen\Optimizer.cs (1)
1759var initializers = node.Initializers;
FlowAnalysis\AbstractFlowPass.cs (1)
1604foreach (var child in node.Initializers)
FlowAnalysis\NullableWalker.cs (3)
4567var expressions = ArrayBuilder<BoundExpression>.GetInstance(initialization.Initializers.Length); 4765foreach (var child in node.Initializers) 7013elements = array.InitializerOpt!.Initializers;
Generated\BoundNodes.xml.Generated.cs (5)
7170if (isInferred != this.IsInferred || initializers != this.Initializers) 10580this.VisitList(node.Initializers); 11908ImmutableArray<BoundExpression> initializers = this.VisitList(node.Initializers); 14359ImmutableArray<BoundExpression> initializers = this.VisitList(node.Initializers); 16675new TreeDumperNode("initializers", null, from x in node.Initializers select Visit(x, null)),
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
345return _bound.StaticCall(WellKnownMember.System_Linq_Expressions_Expression__NewArrayInit, boundType, Expressions(node.InitializerOpt.Initializers));
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
1261if (paramsArray is BoundArrayCreation { Bounds: [BoundLiteral] bounds, InitializerOpt: BoundArrayInitialization { Initializers: var elements } initialization } creation)
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (1)
546foreach (var element in initializers.Initializers)
Lowering\LocalRewriter\LocalRewriter_StackAlloc.cs (1)
42initializerOpt = initializerOpt.Update(VisitList(initializerOpt.Initializers));
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
191arguments = initializer.Initializers;
Lowering\SpillSequenceSpiller.cs (2)
320var newInitializers = VisitExpressionList(ref builder, arrayInitialization.Initializers, forceSpill: true); 829var initializers = this.VisitExpressionList(ref builder, node.Initializers);
Operations\CSharpOperationFactory.cs (1)
1217ImmutableArray<IOperation> elementValues = CreateFromArray<BoundExpression, IOperation>(boundArrayInitialization.Initializers);