2 instantiations of BoundCollectionElementInitializer
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
6468return new BoundCollectionElementInitializer(
Generated\BoundNodes.xml.Generated.cs (1)
6900var 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)
4485var colElement = (BoundCollectionElementInitializer)expr; 5293var colElement = (BoundCollectionElementInitializer)expr;
FlowAnalysis\AbstractFlowPass.cs (1)
3602public override BoundNode VisitCollectionElementInitializer(BoundCollectionElementInitializer node)
FlowAnalysis\NullableWalker.cs (8)
3700case BoundCollectionElementInitializer initializer: 4069completion += VisitCollectionElementInitializer((BoundCollectionElementInitializer)initializer, containingType, delayCompletionForType); 4295private new void VisitCollectionElementInitializer(BoundCollectionElementInitializer node) 4301private Action<int, TypeSymbol>? VisitCollectionElementInitializer(BoundCollectionElementInitializer node, TypeSymbol containingType, bool delayCompletionForType) 4335BoundCollectionElementInitializer node, 4362BoundCollectionElementInitializer node, 4376static MethodSymbol addMethodAsMemberOfContainingType(BoundCollectionElementInitializer node, TypeSymbol containingType, ref ImmutableArray<VisitResult> argumentResults) 6677if (node is BoundCollectionElementInitializer { AddMethod: { TypeArgumentsWithAnnotations: { IsEmpty: false } } })
Generated\BoundNodes.xml.Generated.cs (10)
6896public BoundCollectionElementInitializer Update(MethodSymbol addMethod, ImmutableArray<BoundExpression> arguments, BoundExpression? implicitReceiverOpt, bool expanded, ImmutableArray<int> argsToParamsOpt, BitVector defaultArguments, bool invokedAsExtensionMethod, LookupResultKind resultKind, TypeSymbol type) 6900var result = new BoundCollectionElementInitializer(this.Syntax, addMethod, arguments, implicitReceiverOpt, expanded, argsToParamsOpt, defaultArguments, invokedAsExtensionMethod, resultKind, type, this.HasErrors); 9191return VisitCollectionElementInitializer((BoundCollectionElementInitializer)node, arg); 9483public virtual R VisitCollectionElementInitializer(BoundCollectionElementInitializer node, A arg) => this.DefaultVisit(node, arg); 9719public virtual BoundNode? VisitCollectionElementInitializer(BoundCollectionElementInitializer node) => this.DefaultVisit(node); 10542public override BoundNode? VisitCollectionElementInitializer(BoundCollectionElementInitializer node) 11856public override BoundNode? VisitCollectionElementInitializer(BoundCollectionElementInitializer node) 14218public override BoundNode? VisitCollectionElementInitializer(BoundCollectionElementInitializer node) 14223BoundCollectionElementInitializer updatedNode; 16593public override TreeDumperNode VisitCollectionElementInitializer(BoundCollectionElementInitializer node, object? arg) => new TreeDumperNode("collectionElementInitializer", null, new TreeDumperNode[]
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
1006foreach (BoundCollectionElementInitializer i in ci.Initializers)
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
509public override BoundNode VisitCollectionElementInitializer(BoundCollectionElementInitializer node)
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (2)
126if (expr is BoundCollectionElementInitializer collectionInitializer) 380BoundCollectionElementInitializer collectionInitializer => MakeCollectionInitializer(rewrittenReceiver, collectionInitializer),
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (2)
100rewrittenInitializer = MakeCollectionInitializer(rewrittenReceiver, (BoundCollectionElementInitializer)initializer); 140private BoundExpression? MakeCollectionInitializer(BoundExpression? rewrittenReceiver, BoundCollectionElementInitializer initializer)
Operations\CSharpOperationFactory.cs (2)
78return CreateBoundCollectionElementInitializerOperation((BoundCollectionElementInitializer)boundNode); 923private IOperation CreateBoundCollectionElementInitializerOperation(BoundCollectionElementInitializer boundCollectionElementInitializer)
Operations\CSharpOperationFactory_Methods.cs (2)
243var boundCollectionElementInitializer = (BoundCollectionElementInitializer)containingExpression;