2 instantiations of BoundCollectionElementInitializer
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
6468
return new
BoundCollectionElementInitializer
(
Generated\BoundNodes.xml.Generated.cs (1)
6901
var result = new
BoundCollectionElementInitializer
(this.Syntax, addMethod, arguments, implicitReceiverOpt, expanded, argsToParamsOpt, defaultArguments, invokedAsExtensionMethod, resultKind, type, this.HasErrors);
33 references to BoundCollectionElementInitializer
Microsoft.CodeAnalysis.CSharp (33)
Binder\Binder.ValueChecks.cs (4)
4461
var
colElement = (
BoundCollectionElementInitializer
)expr;
5269
var
colElement = (
BoundCollectionElementInitializer
)expr;
FlowAnalysis\AbstractFlowPass.cs (1)
3602
public override BoundNode VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
FlowAnalysis\NullableWalker.cs (8)
3700
case
BoundCollectionElementInitializer
initializer:
4069
completion += VisitCollectionElementInitializer((
BoundCollectionElementInitializer
)initializer, containingType, delayCompletionForType);
4295
private new void VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
4301
private Action<int, TypeSymbol>? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node, TypeSymbol containingType, bool delayCompletionForType)
4335
BoundCollectionElementInitializer
node,
4362
BoundCollectionElementInitializer
node,
4376
static MethodSymbol addMethodAsMemberOfContainingType(
BoundCollectionElementInitializer
node, TypeSymbol containingType, ref ImmutableArray<VisitResult> argumentResults)
6677
if (node is
BoundCollectionElementInitializer
{ AddMethod: { TypeArgumentsWithAnnotations: { IsEmpty: false } } })
Generated\BoundNodes.xml.Generated.cs (10)
6897
public
BoundCollectionElementInitializer
Update(MethodSymbol addMethod, ImmutableArray<BoundExpression> arguments, BoundExpression? implicitReceiverOpt, bool expanded, ImmutableArray<int> argsToParamsOpt, BitVector defaultArguments, bool invokedAsExtensionMethod, LookupResultKind resultKind, TypeSymbol type)
6901
var
result = new BoundCollectionElementInitializer(this.Syntax, addMethod, arguments, implicitReceiverOpt, expanded, argsToParamsOpt, defaultArguments, invokedAsExtensionMethod, resultKind, type, this.HasErrors);
9192
return VisitCollectionElementInitializer((
BoundCollectionElementInitializer
)node, arg);
9484
public virtual R VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node, A arg) => this.DefaultVisit(node, arg);
9720
public virtual BoundNode? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node) => this.DefaultVisit(node);
10543
public override BoundNode? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
11857
public override BoundNode? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
14219
public override BoundNode? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
14224
BoundCollectionElementInitializer
updatedNode;
16594
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)
509
public override BoundNode VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (2)
126
if (expr is
BoundCollectionElementInitializer
collectionInitializer)
380
BoundCollectionElementInitializer
collectionInitializer => MakeCollectionInitializer(rewrittenReceiver, collectionInitializer),
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (2)
100
rewrittenInitializer = MakeCollectionInitializer(rewrittenReceiver, (
BoundCollectionElementInitializer
)initializer);
140
private BoundExpression? MakeCollectionInitializer(BoundExpression? rewrittenReceiver,
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;