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)
1559new BoundArrayInitialization(Syntax, isInferred: false, elements) { WasCompilerGenerated = true },
71 references to BoundArrayInitialization
Microsoft.CodeAnalysis.CSharp (71)
Binder\Binder_Expressions.cs (5)
4209private BoundArrayInitialization ConvertAndBindArrayInitialization( 4289private BoundArrayInitialization BindArrayInitializerList( 4312private BoundArrayInitialization BindUnexpectedArrayInitializer( 4318var result = BindArrayInitializerList( 4403BoundArrayInitialization 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)
4613var initialization = node.InitializerOpt; 4625private TypeSymbol VisitArrayInitialization(TypeSymbol type, BoundArrayInitialization initialization, bool hasErrors) 4824private static void GetArrayElements(BoundArrayInitialization node, ArrayBuilder<BoundExpression> builder) 4830GetArrayElements((BoundArrayInitialization)child, builder); 11820public override BoundNode? VisitArrayInitialization(BoundArrayInitialization node) 11997var 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) 9244return VisitArrayInitialization((BoundArrayInitialization)node, arg); 9528public virtual R VisitArrayInitialization(BoundArrayInitialization node, A arg) => this.DefaultVisit(node, arg); 9764public virtual BoundNode? VisitArrayInitialization(BoundArrayInitialization node) => this.DefaultVisit(node); 10615public override BoundNode? VisitArrayInitialization(BoundArrayInitialization node) 11939BoundArrayInitialization? initializerOpt = (BoundArrayInitialization?)this.Visit(node.InitializerOpt); 11943public override BoundNode? VisitArrayInitialization(BoundArrayInitialization node) 11952BoundArrayInitialization? initializerOpt = (BoundArrayInitialization?)this.Visit(node.InitializerOpt); 11960BoundArrayInitialization? initializerOpt = (BoundArrayInitialization?)this.Visit(node.InitializerOpt); 14379BoundArrayInitialization? initializerOpt = (BoundArrayInitialization?)this.Visit(node.InitializerOpt); 14394public override BoundNode? VisitArrayInitialization(BoundArrayInitialization node) 14397BoundArrayInitialization updatedNode; 14415BoundArrayInitialization? initializerOpt = (BoundArrayInitialization?)this.Visit(node.InitializerOpt); 14434BoundArrayInitialization? initializerOpt = (BoundArrayInitialization?)this.Visit(node.InitializerOpt); 16709public override TreeDumperNode VisitArrayInitialization(BoundArrayInitialization node, object? arg) => new TreeDumperNode("arrayInitialization", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
1260if (paramsArray is BoundArrayCreation { Bounds: [BoundLiteral] bounds, InitializerOpt: BoundArrayInitialization { Initializers: var elements } initialization } creation)
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
742var 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)