2 instantiations of BoundCollectionElementInitializer
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
6686
return new
BoundCollectionElementInitializer
(
Generated\BoundNodes.xml.Generated.cs (1)
7017
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)
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\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)
3640
public override BoundNode VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
FlowAnalysis\NullableWalker.cs (8)
4086
case
BoundCollectionElementInitializer
initializer:
4545
completion += VisitCollectionElementInitializer((
BoundCollectionElementInitializer
)initializer, containingType, delayCompletionForType);
4821
private new void VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
4827
private InitializerCompletionAfterTargetType? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node, TypeSymbol containingType, bool delayCompletionForType)
4862
BoundCollectionElementInitializer
node,
4889
BoundCollectionElementInitializer
node,
4903
static MethodSymbol addMethodAsMemberOfContainingType(
BoundCollectionElementInitializer
node, TypeSymbol containingType, ref ImmutableArray<VisitResult> argumentResults)
7480
if (node is
BoundCollectionElementInitializer
Generated\BoundNodes.xml.Generated.cs (10)
7013
public
BoundCollectionElementInitializer
Update(MethodSymbol addMethod, ImmutableArray<BoundExpression> arguments, BoundExpression? implicitReceiverOpt, bool expanded, ImmutableArray<int> argsToParamsOpt, BitVector defaultArguments, bool invokedAsExtensionMethod, LookupResultKind resultKind, TypeSymbol type)
7017
var
result = new BoundCollectionElementInitializer(this.Syntax, addMethod, arguments, implicitReceiverOpt, expanded, argsToParamsOpt, defaultArguments, invokedAsExtensionMethod, resultKind, type, this.HasErrors);
9445
return VisitCollectionElementInitializer((
BoundCollectionElementInitializer
)node, arg);
9744
public virtual R VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node, A arg) => this.DefaultVisit(node, arg);
9985
public virtual BoundNode? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node) => this.DefaultVisit(node);
10836
public override BoundNode? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
12303
public override BoundNode? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
14720
public override BoundNode? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
14725
BoundCollectionElementInitializer
updatedNode;
17147
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_Methods.cs (2)
243
var
boundCollectionElementInitializer = (
BoundCollectionElementInitializer
)containingExpression;
Operations\CSharpOperationFactory.cs (2)
77
return CreateBoundCollectionElementInitializerOperation((
BoundCollectionElementInitializer
)boundNode);
938
private IOperation CreateBoundCollectionElementInitializerOperation(
BoundCollectionElementInitializer
boundCollectionElementInitializer)