2 instantiations of BoundCollectionElementInitializer
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
6686
return new
BoundCollectionElementInitializer
(
Generated\BoundNodes.xml.Generated.cs (1)
7018
var result = new
BoundCollectionElementInitializer
(this.Syntax, addMethod, arguments, implicitReceiverOpt, expanded, argsToParamsOpt, defaultArguments, invokedAsExtensionMethod, resultKind, type, this.HasErrors);
40 references to BoundCollectionElementInitializer
Microsoft.CodeAnalysis.CSharp (40)
Binder\Binder_Conversions.cs (2)
2232
case
BoundCollectionElementInitializer
collectionInitializer:
2262
static BoundExpression getCollectionInitializerElement(
BoundCollectionElementInitializer
collectionInitializer)
Binder\Binder.ValueChecks.cs (5)
317
public static MethodInvocationInfo FromCollectionElementInitializer(
BoundCollectionElementInitializer
colElement)
4819
if (element is
BoundCollectionElementInitializer
colElement)
4827
if (spreadElement.IteratorBody is BoundExpressionStatement { Expression:
BoundCollectionElementInitializer
spreadElementInitializer })
4869
result = result.Intersect(expr is
BoundCollectionElementInitializer
colElement
5807
if (expr is
BoundCollectionElementInitializer
colElement)
Binder\RefSafetyAnalysis.cs (2)
1423
if (spreadElement.IteratorBody is BoundExpressionStatement { Expression:
BoundCollectionElementInitializer
spreadElementInitializer })
1443
Debug.Assert(element is
BoundCollectionElementInitializer
or BoundExpression, $"Unexpected collection expression element {element}");
FlowAnalysis\AbstractFlowPass.cs (1)
3649
public override BoundNode VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
FlowAnalysis\NullableWalker.cs (8)
4135
case
BoundCollectionElementInitializer
initializer:
4611
completion += VisitCollectionElementInitializer((
BoundCollectionElementInitializer
)initializer, containingType, delayCompletionForType);
4887
private new void VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
4893
private InitializerCompletionAfterTargetType? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node, TypeSymbol containingType, bool delayCompletionForType)
4928
BoundCollectionElementInitializer
node,
4955
BoundCollectionElementInitializer
node,
4969
static MethodSymbol addMethodAsMemberOfContainingType(
BoundCollectionElementInitializer
node, TypeSymbol containingType, ref ImmutableArray<VisitResult> argumentResults)
7570
if (node is
BoundCollectionElementInitializer
Generated\BoundNodes.xml.Generated.cs (10)
7014
public
BoundCollectionElementInitializer
Update(MethodSymbol addMethod, ImmutableArray<BoundExpression> arguments, BoundExpression? implicitReceiverOpt, bool expanded, ImmutableArray<int> argsToParamsOpt, BitVector defaultArguments, bool invokedAsExtensionMethod, LookupResultKind resultKind, TypeSymbol type)
7018
var
result = new BoundCollectionElementInitializer(this.Syntax, addMethod, arguments, implicitReceiverOpt, expanded, argsToParamsOpt, defaultArguments, invokedAsExtensionMethod, resultKind, type, this.HasErrors);
9442
return VisitCollectionElementInitializer((
BoundCollectionElementInitializer
)node, arg);
9741
public virtual R VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node, A arg) => this.DefaultVisit(node, arg);
9982
public virtual BoundNode? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node) => this.DefaultVisit(node);
10833
public override BoundNode? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
12298
public override BoundNode? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
14713
public override BoundNode? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
14718
BoundCollectionElementInitializer
updatedNode;
17138
public override TreeDumperNode VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node, object? arg) => new TreeDumperNode("collectionElementInitializer", null, new TreeDumperNode[]
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
1052
foreach (
BoundCollectionElementInitializer
i in ci.Initializers)
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
548
public override BoundNode VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (2)
130
if (expr is
BoundCollectionElementInitializer
collectionInitializer)
539
BoundCollectionElementInitializer
collectionInitializer => MakeCollectionInitializer(collectionInitializer),
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (4)
96
var
elementInitializer = (
BoundCollectionElementInitializer
)initializer;
139
rewrittenInitializer = MakeCollectionInitializer((
BoundCollectionElementInitializer
)initializer);
179
private BoundExpression? MakeCollectionInitializer(
BoundCollectionElementInitializer
initializer)
Operations\CSharpOperationFactory_Methods.cs (2)
243
var
boundCollectionElementInitializer = (
BoundCollectionElementInitializer
)containingExpression;
Operations\CSharpOperationFactory.cs (2)
77
return CreateBoundCollectionElementInitializerOperation((
BoundCollectionElementInitializer
)boundNode);
938
private IOperation CreateBoundCollectionElementInitializerOperation(
BoundCollectionElementInitializer
boundCollectionElementInitializer)