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)
7173var 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); 11759public override BoundNode? VisitArrayInitialization(BoundArrayInitialization node) 11936var initialization = node.InitializerOpt;
Generated\BoundNodes.xml.Generated.cs (31)
7120public BoundArrayCreation(SyntaxNode syntax, ImmutableArray<BoundExpression> bounds, BoundArrayInitialization? initializerOpt, TypeSymbol type, bool hasErrors = false) 7133public BoundArrayInitialization? InitializerOpt { get; } 7138public BoundArrayCreation Update(ImmutableArray<BoundExpression> bounds, BoundArrayInitialization? initializerOpt, TypeSymbol type) 7169public BoundArrayInitialization Update(bool isInferred, ImmutableArray<BoundExpression> initializers) 7173var result = new BoundArrayInitialization(this.Syntax, isInferred, initializers, this.HasErrors); 7183protected BoundStackAllocArrayCreationBase(BoundKind kind, SyntaxNode syntax, TypeSymbol elementType, BoundExpression count, BoundArrayInitialization? initializerOpt, TypeSymbol? type, bool hasErrors = false) 7197public BoundArrayInitialization? InitializerOpt { get; } 7202public BoundStackAllocArrayCreation(SyntaxNode syntax, TypeSymbol elementType, BoundExpression count, BoundArrayInitialization? initializerOpt, TypeSymbol? type, bool hasErrors = false) 7215public BoundStackAllocArrayCreation Update(TypeSymbol elementType, BoundExpression count, BoundArrayInitialization? initializerOpt, TypeSymbol? type) 7229public BoundConvertedStackAllocExpression(SyntaxNode syntax, TypeSymbol elementType, BoundExpression count, BoundArrayInitialization? initializerOpt, TypeSymbol type, bool hasErrors = false) 7244public BoundConvertedStackAllocExpression Update(TypeSymbol elementType, BoundExpression count, BoundArrayInitialization? initializerOpt, TypeSymbol type) 9208return VisitArrayInitialization((BoundArrayInitialization)node, arg); 9492public virtual R VisitArrayInitialization(BoundArrayInitialization node, A arg) => this.DefaultVisit(node, arg); 9728public virtual BoundNode? VisitArrayInitialization(BoundArrayInitialization node) => this.DefaultVisit(node); 10579public override BoundNode? VisitArrayInitialization(BoundArrayInitialization node) 11903BoundArrayInitialization? initializerOpt = (BoundArrayInitialization?)this.Visit(node.InitializerOpt); 11907public override BoundNode? VisitArrayInitialization(BoundArrayInitialization node) 11916BoundArrayInitialization? initializerOpt = (BoundArrayInitialization?)this.Visit(node.InitializerOpt); 11924BoundArrayInitialization? initializerOpt = (BoundArrayInitialization?)this.Visit(node.InitializerOpt); 14343BoundArrayInitialization? initializerOpt = (BoundArrayInitialization?)this.Visit(node.InitializerOpt); 14358public override BoundNode? VisitArrayInitialization(BoundArrayInitialization node) 14361BoundArrayInitialization updatedNode; 14379BoundArrayInitialization? initializerOpt = (BoundArrayInitialization?)this.Visit(node.InitializerOpt); 14398BoundArrayInitialization? initializerOpt = (BoundArrayInitialization?)this.Visit(node.InitializerOpt); 16673public 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)