2 instantiations of BoundCollectionElementInitializer
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
6686
return new
BoundCollectionElementInitializer
(
Generated\BoundNodes.xml.Generated.cs (1)
7016
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.ValueChecks.cs (5)
316
public static MethodInvocationInfo FromCollectionElementInitializer(
BoundCollectionElementInitializer
colElement)
4834
if (element is
BoundCollectionElementInitializer
colElement)
4842
if (spreadElement.IteratorBody is BoundExpressionStatement { Expression:
BoundCollectionElementInitializer
spreadElementInitializer })
4884
result = result.Intersect(expr is
BoundCollectionElementInitializer
colElement
5822
if (expr is
BoundCollectionElementInitializer
colElement)
Binder\Binder_Conversions.cs (2)
2232
case
BoundCollectionElementInitializer
collectionInitializer:
2262
static BoundExpression getCollectionInitializerElement(
BoundCollectionElementInitializer
collectionInitializer)
Binder\RefSafetyAnalysis.cs (2)
1418
if (spreadElement.IteratorBody is BoundExpressionStatement { Expression:
BoundCollectionElementInitializer
spreadElementInitializer })
1438
Debug.Assert(element is
BoundCollectionElementInitializer
or BoundExpression, $"Unexpected collection expression element {element}");
FlowAnalysis\AbstractFlowPass.cs (1)
3640
public override BoundNode VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
FlowAnalysis\NullableWalker.cs (8)
4100
case
BoundCollectionElementInitializer
initializer:
4559
completion += VisitCollectionElementInitializer((
BoundCollectionElementInitializer
)initializer, containingType, delayCompletionForType);
4835
private new void VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
4841
private InitializerCompletionAfterTargetType? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node, TypeSymbol containingType, bool delayCompletionForType)
4876
BoundCollectionElementInitializer
node,
4903
BoundCollectionElementInitializer
node,
4917
static MethodSymbol addMethodAsMemberOfContainingType(
BoundCollectionElementInitializer
node, TypeSymbol containingType, ref ImmutableArray<VisitResult> argumentResults)
7494
if (node is
BoundCollectionElementInitializer
Generated\BoundNodes.xml.Generated.cs (10)
7012
public
BoundCollectionElementInitializer
Update(MethodSymbol addMethod, ImmutableArray<BoundExpression> arguments, BoundExpression? implicitReceiverOpt, bool expanded, ImmutableArray<int> argsToParamsOpt, BitVector defaultArguments, bool invokedAsExtensionMethod, LookupResultKind resultKind, TypeSymbol type)
7016
var
result = new BoundCollectionElementInitializer(this.Syntax, addMethod, arguments, implicitReceiverOpt, expanded, argsToParamsOpt, defaultArguments, invokedAsExtensionMethod, resultKind, type, this.HasErrors);
9440
return VisitCollectionElementInitializer((
BoundCollectionElementInitializer
)node, arg);
9739
public virtual R VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node, A arg) => this.DefaultVisit(node, arg);
9980
public virtual BoundNode? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node) => this.DefaultVisit(node);
10831
public override BoundNode? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
12296
public override BoundNode? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
14711
public override BoundNode? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
14716
BoundCollectionElementInitializer
updatedNode;
17136
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)
135
if (expr is
BoundCollectionElementInitializer
collectionInitializer)
474
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.cs (2)
77
return CreateBoundCollectionElementInitializerOperation((
BoundCollectionElementInitializer
)boundNode);
938
private IOperation CreateBoundCollectionElementInitializerOperation(
BoundCollectionElementInitializer
boundCollectionElementInitializer)
Operations\CSharpOperationFactory_Methods.cs (2)
243
var
boundCollectionElementInitializer = (
BoundCollectionElementInitializer
)containingExpression;