10 instantiations of BoundArrayCreation
Microsoft.CodeAnalysis.CSharp (10)
Binder\Binder_Expressions.cs (2)
4150? new BoundArrayCreation(node, arraySizes, null, type, hasErrors) 4552return new BoundArrayCreation(nonNullSyntax, sizes, initializer, type, hasErrors: hasErrors)
Binder\Binder_Invocation.cs (1)
1844collection = new BoundArrayCreation(
Generated\BoundNodes.xml.Generated.cs (1)
7168var result = new BoundArrayCreation(this.Syntax, bounds, initializerOpt, type, this.HasErrors);
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
1490return new BoundArrayCreation(
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (2)
816return new BoundArrayCreation( 850new BoundArrayCreation(syntax,
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
156var utf8Bytes = new BoundArrayCreation(
Lowering\SyntheticBoundNodeFactory.cs (2)
1566return new BoundArrayCreation( 1575return new BoundArrayCreation(
39 references to BoundArrayCreation
Microsoft.CodeAnalysis.CSharp (38)
Binder\Binder_Attributes.cs (4)
386Debug.Assert(!arguments[argIndex].IsParamsArrayOrCollection || arguments[argIndex] is BoundArrayCreation); 391(arguments[argIndex].IsParamsArrayOrCollection && arguments[argIndex] is BoundArrayCreation { Bounds: [BoundLiteral { ConstantValueOpt.Value: 0 }] }) ? 871return VisitArrayCreation((BoundArrayCreation)node, diagnostics, ref attrHasErrors, curArgumentHasErrors); 973private TypedConstant VisitArrayCreation(BoundArrayCreation node, BindingDiagnosticBag diagnostics, ref bool attrHasErrors, bool curArgumentHasErrors)
Binder\Binder_Conversions.cs (1)
1679if (arg is BoundArrayCreation { InitializerOpt.Initializers: [var arrayElement] })
Binder\Binder_Expressions.cs (1)
4477private BoundArrayCreation BindArrayCreationWithInitializer(
BoundTree\BoundNode.cs (1)
362this is BoundArrayCreation { Bounds: [BoundLiteral { WasCompilerGenerated: true }], InitializerOpt: BoundArrayInitialization { WasCompilerGenerated: true }, WasCompilerGenerated: true } or
CodeGen\EmitArrayInitializer.cs (2)
471if (wrappedExpression is not BoundArrayCreation { InitializerOpt: { } initializer } ac) 680bool tryEmitAsCachedArrayOfConstants(BoundArrayCreation arrayCreation, ArrayTypeSymbol arrayType, TypeSymbol elementType, NamedTypeSymbol spanType, bool used, BoundExpression? inPlaceTarget, out bool avoidInPlace)
CodeGen\EmitExpression.cs (2)
115EmitArrayCreationExpression((BoundArrayCreation)expression, used); 2399private void EmitArrayCreationExpression(BoundArrayCreation expression, bool used)
FlowAnalysis\AbstractFlowPass.cs (1)
2853public override BoundNode VisitArrayCreation(BoundArrayCreation node)
FlowAnalysis\NullableWalker.cs (2)
4819public override BoundNode? VisitArrayCreation(BoundArrayCreation node) 7550if (argument is BoundArrayCreation array)
FlowAnalysis\NullableWalker.DebugVerifier.cs (1)
105public override BoundNode? VisitArrayCreation(BoundArrayCreation node)
Generated\BoundNodes.xml.Generated.cs (10)
7164public BoundArrayCreation Update(ImmutableArray<BoundExpression> bounds, BoundArrayInitialization? initializerOpt, TypeSymbol type) 7168var result = new BoundArrayCreation(this.Syntax, bounds, initializerOpt, type, this.HasErrors); 9272return VisitArrayCreation((BoundArrayCreation)node, arg); 9557public virtual R VisitArrayCreation(BoundArrayCreation node, A arg) => this.DefaultVisit(node, arg); 9793public virtual BoundNode? VisitArrayCreation(BoundArrayCreation node) => this.DefaultVisit(node); 10640public override BoundNode? VisitArrayCreation(BoundArrayCreation node) 12093public override BoundNode? VisitArrayCreation(BoundArrayCreation node) 14548public override BoundNode? VisitArrayCreation(BoundArrayCreation node) 14552BoundArrayCreation updatedNode; 16865public override TreeDumperNode VisitArrayCreation(BoundArrayCreation node, object? arg) => new TreeDumperNode("arrayCreation", null, new TreeDumperNode[]
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
186return VisitArrayCreation((BoundArrayCreation)node); 338private BoundExpression VisitArrayCreation(BoundArrayCreation node)
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
78public override BoundNode VisitArrayCreation(BoundArrayCreation node)
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
1193if (possibleParamsArray.IsParamsArrayOrCollection && !_inExpressionLambda && ((BoundArrayCreation)possibleParamsArray).Bounds is [BoundLiteral { ConstantValueOpt.Value: 0 }]) 1357if (paramsArray is BoundArrayCreation { Bounds: [BoundLiteral] bounds, InitializerOpt: BoundArrayInitialization { Initializers: var elements } initialization } creation)
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (1)
500Debug.Assert(array is BoundArrayCreation);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
140private BoundArrayCreation MakeUnderlyingArrayForUtf8Span(SyntaxNode syntax, ArrayTypeSymbol byteArray, IReadOnlyList<byte> bytes, out int length) 156var utf8Bytes = new BoundArrayCreation(
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (1)
576if (argument is BoundArrayCreation { IsParamsArrayOrCollection: true, InitializerOpt: var initializers })
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
431if ((object)call.Method == _concatStringArray && call.Arguments[0] is BoundArrayCreation array)
Lowering\SpillSequenceSpiller.cs (1)
816public override BoundNode VisitArrayCreation(BoundArrayCreation node)
Operations\CSharpOperationFactory.cs (2)
100return CreateBoundArrayCreationOperation((BoundArrayCreation)boundNode); 1204private IArrayCreationOperation CreateBoundArrayCreationOperation(BoundArrayCreation boundArrayCreation)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\UnsafeTests.cs (1)
5268public override BoundNode VisitArrayCreation(BoundArrayCreation node)