9 instantiations of BoundArrayCreation
Microsoft.CodeAnalysis.CSharp (9)
Binder\Binder_Expressions.cs (1)
4430
return new
BoundArrayCreation
(nonNullSyntax, sizes, initializer, type, hasErrors: hasErrors)
Binder\Binder_Invocation.cs (1)
1727
collection = new
BoundArrayCreation
(
Generated\BoundNodes.xml.Generated.cs (1)
7141
var result = new
BoundArrayCreation
(this.Syntax, bounds, initializerOpt, type, this.HasErrors);
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
1407
return new
BoundArrayCreation
(
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (2)
700
return new
BoundArrayCreation
(
727
new
BoundArrayCreation
(syntax,
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
158
var utf8Bytes = new
BoundArrayCreation
(
Lowering\SyntheticBoundNodeFactory.cs (2)
1548
return new
BoundArrayCreation
(
1557
return new
BoundArrayCreation
(
38 references to BoundArrayCreation
Microsoft.CodeAnalysis.CSharp (38)
Binder\Binder_Attributes.cs (4)
384
Debug.Assert(!arguments[argIndex].IsParamsArrayOrCollection || arguments[argIndex] is
BoundArrayCreation
);
389
(arguments[argIndex].IsParamsArrayOrCollection && arguments[argIndex] is
BoundArrayCreation
{ Bounds: [BoundLiteral { ConstantValueOpt.Value: 0 }] }) ?
869
return VisitArrayCreation((
BoundArrayCreation
)node, diagnostics, ref attrHasErrors, curArgumentHasErrors);
971
private TypedConstant VisitArrayCreation(
BoundArrayCreation
node, BindingDiagnosticBag diagnostics, ref bool attrHasErrors, bool curArgumentHasErrors)
Binder\Binder_Expressions.cs (1)
4355
private
BoundArrayCreation
BindArrayCreationWithInitializer(
BoundTree\BoundNode.cs (1)
362
this is
BoundArrayCreation
{ Bounds: [BoundLiteral { WasCompilerGenerated: true }], InitializerOpt: BoundArrayInitialization { WasCompilerGenerated: true }, WasCompilerGenerated: true } or
CodeGen\EmitArrayInitializer.cs (2)
473
if (wrappedExpression is not
BoundArrayCreation
{ InitializerOpt: { } initializer } ac)
682
bool tryEmitAsCachedArrayOfConstants(
BoundArrayCreation
arrayCreation, ArrayTypeSymbol arrayType, TypeSymbol elementType, NamedTypeSymbol spanType, bool used, BoundExpression? inPlaceTarget, out bool avoidInPlace)
CodeGen\EmitExpression.cs (2)
115
EmitArrayCreationExpression((
BoundArrayCreation
)expression, used);
2372
private void EmitArrayCreationExpression(
BoundArrayCreation
expression, bool used)
FlowAnalysis\AbstractFlowPass.cs (1)
2822
public override BoundNode VisitArrayCreation(
BoundArrayCreation
node)
FlowAnalysis\NullableWalker.cs (2)
4545
public override BoundNode? VisitArrayCreation(
BoundArrayCreation
node)
7011
if (argument is
BoundArrayCreation
array)
FlowAnalysis\NullableWalker.DebugVerifier.cs (1)
105
public override BoundNode? VisitArrayCreation(
BoundArrayCreation
node)
Generated\BoundNodes.xml.Generated.cs (10)
7137
public
BoundArrayCreation
Update(ImmutableArray<BoundExpression> bounds, BoundArrayInitialization? initializerOpt, TypeSymbol type)
7141
var
result = new BoundArrayCreation(this.Syntax, bounds, initializerOpt, type, this.HasErrors);
9205
return VisitArrayCreation((
BoundArrayCreation
)node, arg);
9490
public virtual R VisitArrayCreation(
BoundArrayCreation
node, A arg) => this.DefaultVisit(node, arg);
9726
public virtual BoundNode? VisitArrayCreation(
BoundArrayCreation
node) => this.DefaultVisit(node);
10572
public override BoundNode? VisitArrayCreation(
BoundArrayCreation
node)
11899
public override BoundNode? VisitArrayCreation(
BoundArrayCreation
node)
14339
public override BoundNode? VisitArrayCreation(
BoundArrayCreation
node)
14343
BoundArrayCreation
updatedNode;
16663
public override TreeDumperNode VisitArrayCreation(
BoundArrayCreation
node, object? arg) => new TreeDumperNode("arrayCreation", null, new TreeDumperNode[]
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
186
return VisitArrayCreation((
BoundArrayCreation
)node);
337
private BoundExpression VisitArrayCreation(
BoundArrayCreation
node)
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
78
public override BoundNode VisitArrayCreation(
BoundArrayCreation
node)
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
1133
if (possibleParamsArray.IsParamsArrayOrCollection && !_inExpressionLambda && ((
BoundArrayCreation
)possibleParamsArray).Bounds is [BoundLiteral { ConstantValueOpt.Value: 0 }])
1261
if (paramsArray is
BoundArrayCreation
{ Bounds: [BoundLiteral] bounds, InitializerOpt: BoundArrayInitialization { Initializers: var elements } initialization } creation)
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (1)
349
Debug.Assert(array is
BoundArrayCreation
);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
142
private
BoundArrayCreation
MakeUnderlyingArrayForUtf8Span(SyntaxNode syntax, ArrayTypeSymbol byteArray, IReadOnlyList<byte> bytes, out int length)
158
var
utf8Bytes = new BoundArrayCreation(
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (1)
543
if (argument is
BoundArrayCreation
{ IsParamsArrayOrCollection: true, InitializerOpt: var initializers })
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (2)
185
var
args = boundCall.Arguments[0] as
BoundArrayCreation
;
Lowering\SpillSequenceSpiller.cs (1)
805
public override BoundNode VisitArrayCreation(
BoundArrayCreation
node)
Operations\CSharpOperationFactory.cs (2)
100
return CreateBoundArrayCreationOperation((
BoundArrayCreation
)boundNode);
1204
private IArrayCreationOperation CreateBoundArrayCreationOperation(
BoundArrayCreation
boundArrayCreation)