2 instantiations of BoundCollectionElementInitializer
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
6686
return new
BoundCollectionElementInitializer
(
Generated\BoundNodes.xml.Generated.cs (1)
7019
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)
4835
if (element is
BoundCollectionElementInitializer
colElement)
4843
if (spreadElement.IteratorBody is BoundExpressionStatement { Expression:
BoundCollectionElementInitializer
spreadElementInitializer })
4885
result = result.Intersect(expr is
BoundCollectionElementInitializer
colElement
5823
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)
4142
case
BoundCollectionElementInitializer
initializer:
4601
completion += VisitCollectionElementInitializer((
BoundCollectionElementInitializer
)initializer, containingType, delayCompletionForType);
4877
private new void VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
4883
private InitializerCompletionAfterTargetType? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node, TypeSymbol containingType, bool delayCompletionForType)
4918
BoundCollectionElementInitializer
node,
4945
BoundCollectionElementInitializer
node,
4959
static MethodSymbol addMethodAsMemberOfContainingType(
BoundCollectionElementInitializer
node, TypeSymbol containingType, ref ImmutableArray<VisitResult> argumentResults)
7552
if (node is
BoundCollectionElementInitializer
Generated\BoundNodes.xml.Generated.cs (10)
7015
public
BoundCollectionElementInitializer
Update(MethodSymbol addMethod, ImmutableArray<BoundExpression> arguments, BoundExpression? implicitReceiverOpt, bool expanded, ImmutableArray<int> argsToParamsOpt, BitVector defaultArguments, bool invokedAsExtensionMethod, LookupResultKind resultKind, TypeSymbol type)
7019
var
result = new BoundCollectionElementInitializer(this.Syntax, addMethod, arguments, implicitReceiverOpt, expanded, argsToParamsOpt, defaultArguments, invokedAsExtensionMethod, resultKind, type, this.HasErrors);
9443
return VisitCollectionElementInitializer((
BoundCollectionElementInitializer
)node, arg);
9742
public virtual R VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node, A arg) => this.DefaultVisit(node, arg);
9983
public virtual BoundNode? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node) => this.DefaultVisit(node);
10834
public override BoundNode? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
12299
public override BoundNode? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
14714
public override BoundNode? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
14719
BoundCollectionElementInitializer
updatedNode;
17140
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)