3 instantiations of BoundArrayInitialization
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Invocation.cs (1)
1730new BoundArrayInitialization(node, isInferred: false, collectionArgs) { WasCompilerGenerated = true },
Generated\BoundNodes.xml.Generated.cs (1)
7172var result = new BoundArrayInitialization(this.Syntax, isInferred, initializers, this.HasErrors);
Lowering\SyntheticBoundNodeFactory.cs (1)
1551new BoundArrayInitialization(Syntax, isInferred: false, elements) { WasCompilerGenerated = true },
71 references to BoundArrayInitialization
Microsoft.CodeAnalysis.CSharp (71)
Binder\Binder_Expressions.cs (5)
4206private BoundArrayInitialization ConvertAndBindArrayInitialization( 4286private BoundArrayInitialization BindArrayInitializerList( 4309private BoundArrayInitialization BindUnexpectedArrayInitializer( 4315var result = BindArrayInitializerList( 4400BoundArrayInitialization initializer = BindArrayInitializerList(diagnostics, initSyntax, type, knownSizes, 1, isInferred, boundInitExprOpt);
Binder\Binder_Statements.cs (1)
885var result = BindUnexpectedArrayInitializer((InitializerExpressionSyntax)initializer,
BoundTree\BoundArrayInitialization.cs (1)
11public BoundArrayInitialization Update(ImmutableArray<BoundExpression> initializers)
BoundTree\BoundNode.cs (1)
362this is BoundArrayCreation { Bounds: [BoundLiteral { WasCompilerGenerated: true }], InitializerOpt: BoundArrayInitialization { WasCompilerGenerated: true }, WasCompilerGenerated: true } or
BoundTree\Expression.cs (1)
131internal static ImmutableArray<BoundExpression> GetChildInitializers(BoundArrayInitialization? arrayInitializer)
CodeGen\EmitArrayInitializer.cs (7)
45private void EmitArrayInitializers(ArrayTypeSymbol arrayType, BoundArrayInitialization inits) 146indices.Push(new IndexDesc(i, ((BoundArrayInitialization)inits[i]).Initializers)); 180indices.Push(new IndexDesc(i, ((BoundArrayInitialization)inits[i]).Initializers)); 306var asArrayInit = init as BoundArrayInitialization; 352SerializeArrayRecursive(bw, ((BoundArrayInitialization)init).Initializers); 691var initializer = arrayCreation.InitializerOpt;
CodeGen\EmitExpression.cs (1)
2399var initializer = expression.InitializerOpt;
CodeGen\EmitStackAllocInitializer.cs (2)
16private void EmitStackAlloc(TypeSymbol type, BoundArrayInitialization? inits, BoundExpression count) 172Debug.Assert(!(init is BoundArrayInitialization), "Nested initializers are not allowed for stackalloc");
CodeGen\Optimizer.cs (1)
1754public override BoundNode VisitArrayInitialization(BoundArrayInitialization node)
FlowAnalysis\AbstractFlowPass.cs (1)
1602public override BoundNode VisitArrayInitialization(BoundArrayInitialization node)
FlowAnalysis\NullableWalker.cs (6)
4552var initialization = node.InitializerOpt; 4564private TypeSymbol VisitArrayInitialization(TypeSymbol type, BoundArrayInitialization initialization, bool hasErrors) 4763private static void GetArrayElements(BoundArrayInitialization node, ArrayBuilder<BoundExpression> builder) 4769GetArrayElements((BoundArrayInitialization)child, builder); 11762public override BoundNode? VisitArrayInitialization(BoundArrayInitialization node) 11939var initialization = node.InitializerOpt;
Generated\BoundNodes.xml.Generated.cs (31)
7119public BoundArrayCreation(SyntaxNode syntax, ImmutableArray<BoundExpression> bounds, BoundArrayInitialization? initializerOpt, TypeSymbol type, bool hasErrors = false) 7132public BoundArrayInitialization? InitializerOpt { get; } 7137public BoundArrayCreation Update(ImmutableArray<BoundExpression> bounds, BoundArrayInitialization? initializerOpt, TypeSymbol type) 7168public BoundArrayInitialization Update(bool isInferred, ImmutableArray<BoundExpression> initializers) 7172var result = new BoundArrayInitialization(this.Syntax, isInferred, initializers, this.HasErrors); 7182protected BoundStackAllocArrayCreationBase(BoundKind kind, SyntaxNode syntax, TypeSymbol elementType, BoundExpression count, BoundArrayInitialization? initializerOpt, TypeSymbol? type, bool hasErrors = false) 7196public BoundArrayInitialization? InitializerOpt { get; } 7201public BoundStackAllocArrayCreation(SyntaxNode syntax, TypeSymbol elementType, BoundExpression count, BoundArrayInitialization? initializerOpt, TypeSymbol? type, bool hasErrors = false) 7214public BoundStackAllocArrayCreation Update(TypeSymbol elementType, BoundExpression count, BoundArrayInitialization? initializerOpt, TypeSymbol? type) 7228public BoundConvertedStackAllocExpression(SyntaxNode syntax, TypeSymbol elementType, BoundExpression count, BoundArrayInitialization? initializerOpt, TypeSymbol type, bool hasErrors = false) 7243public BoundConvertedStackAllocExpression Update(TypeSymbol elementType, BoundExpression count, BoundArrayInitialization? initializerOpt, TypeSymbol type) 9207return VisitArrayInitialization((BoundArrayInitialization)node, arg); 9491public virtual R VisitArrayInitialization(BoundArrayInitialization node, A arg) => this.DefaultVisit(node, arg); 9727public virtual BoundNode? VisitArrayInitialization(BoundArrayInitialization node) => this.DefaultVisit(node); 10578public override BoundNode? VisitArrayInitialization(BoundArrayInitialization node) 11902BoundArrayInitialization? initializerOpt = (BoundArrayInitialization?)this.Visit(node.InitializerOpt); 11906public override BoundNode? VisitArrayInitialization(BoundArrayInitialization node) 11915BoundArrayInitialization? initializerOpt = (BoundArrayInitialization?)this.Visit(node.InitializerOpt); 11923BoundArrayInitialization? initializerOpt = (BoundArrayInitialization?)this.Visit(node.InitializerOpt); 14342BoundArrayInitialization? initializerOpt = (BoundArrayInitialization?)this.Visit(node.InitializerOpt); 14357public override BoundNode? VisitArrayInitialization(BoundArrayInitialization node) 14360BoundArrayInitialization updatedNode; 14378BoundArrayInitialization? initializerOpt = (BoundArrayInitialization?)this.Visit(node.InitializerOpt); 14397BoundArrayInitialization? initializerOpt = (BoundArrayInitialization?)this.Visit(node.InitializerOpt); 16672public override TreeDumperNode VisitArrayInitialization(BoundArrayInitialization node, object? arg) => new TreeDumperNode("arrayInitialization", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
1261if (paramsArray is BoundArrayCreation { Bounds: [BoundLiteral] bounds, InitializerOpt: BoundArrayInitialization { Initializers: var elements } initialization } creation)
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
696var initialization = new BoundArrayInitialization(
Lowering\LocalRewriter\LocalRewriter_StackAlloc.cs (1)
39var initializerOpt = stackAllocNode.InitializerOpt;
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
188var initializer = args.InitializerOpt;
Lowering\SpillSequenceSpiller.cs (7)
319var arrayInitialization = (BoundArrayInitialization)expression; 808var init = (BoundArrayInitialization)VisitExpression(ref builder, node.InitializerOpt); 826public override BoundNode VisitArrayInitialization(BoundArrayInitialization node) 837var initializerOpt = (BoundArrayInitialization)VisitExpression(ref builder, node.InitializerOpt);
Operations\CSharpOperationFactory.cs (2)
102return CreateBoundArrayInitializationOperation((BoundArrayInitialization)boundNode); 1215private IArrayInitializerOperation CreateBoundArrayInitializationOperation(BoundArrayInitialization boundArrayInitialization)