2 instantiations of BoundCollectionElementInitializer
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
6522
return new
BoundCollectionElementInitializer
(
Generated\BoundNodes.xml.Generated.cs (1)
6899
var result = new
BoundCollectionElementInitializer
(this.Syntax, addMethod, arguments, implicitReceiverOpt, expanded, argsToParamsOpt, defaultArguments, invokedAsExtensionMethod, resultKind, type, this.HasErrors);
35 references to BoundCollectionElementInitializer
Microsoft.CodeAnalysis.CSharp (35)
Binder\Binder.ValueChecks.cs (4)
4564
var
colElement = (
BoundCollectionElementInitializer
)expr;
5378
var
colElement = (
BoundCollectionElementInitializer
)expr;
FlowAnalysis\AbstractFlowPass.cs (1)
3618
public override BoundNode VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
FlowAnalysis\NullableWalker.cs (8)
3842
case
BoundCollectionElementInitializer
initializer:
4214
completion += VisitCollectionElementInitializer((
BoundCollectionElementInitializer
)initializer, containingType, delayCompletionForType);
4440
private new void VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
4446
private Action<int, TypeSymbol>? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node, TypeSymbol containingType, bool delayCompletionForType)
4480
BoundCollectionElementInitializer
node,
4507
BoundCollectionElementInitializer
node,
4521
static MethodSymbol addMethodAsMemberOfContainingType(
BoundCollectionElementInitializer
node, TypeSymbol containingType, ref ImmutableArray<VisitResult> argumentResults)
6832
if (node is
BoundCollectionElementInitializer
{ AddMethod: { TypeArgumentsWithAnnotations: { IsEmpty: false } } })
Generated\BoundNodes.xml.Generated.cs (10)
6895
public
BoundCollectionElementInitializer
Update(MethodSymbol addMethod, ImmutableArray<BoundExpression> arguments, BoundExpression? implicitReceiverOpt, bool expanded, ImmutableArray<int> argsToParamsOpt, BitVector defaultArguments, bool invokedAsExtensionMethod, LookupResultKind resultKind, TypeSymbol type)
6899
var
result = new BoundCollectionElementInitializer(this.Syntax, addMethod, arguments, implicitReceiverOpt, expanded, argsToParamsOpt, defaultArguments, invokedAsExtensionMethod, resultKind, type, this.HasErrors);
9226
return VisitCollectionElementInitializer((
BoundCollectionElementInitializer
)node, arg);
9518
public virtual R VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node, A arg) => this.DefaultVisit(node, arg);
9754
public virtual BoundNode? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node) => this.DefaultVisit(node);
10577
public override BoundNode? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
12007
public override BoundNode? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
14398
public override BoundNode? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
14403
BoundCollectionElementInitializer
updatedNode;
16772
public override TreeDumperNode VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node, object? arg) => new TreeDumperNode("collectionElementInitializer", null, new TreeDumperNode[]
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
1006
foreach (
BoundCollectionElementInitializer
i in ci.Initializers)
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
546
public override BoundNode VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (2)
126
if (expr is
BoundCollectionElementInitializer
collectionInitializer)
387
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)
78
return CreateBoundCollectionElementInitializerOperation((
BoundCollectionElementInitializer
)boundNode);
923
private IOperation CreateBoundCollectionElementInitializerOperation(
BoundCollectionElementInitializer
boundCollectionElementInitializer)
Operations\CSharpOperationFactory_Methods.cs (2)
243
var
boundCollectionElementInitializer = (
BoundCollectionElementInitializer
)containingExpression;