2 instantiations of BoundCollectionElementInitializer
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
6670
return new
BoundCollectionElementInitializer
(
Generated\BoundNodes.xml.Generated.cs (1)
7036
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)
331
public static MethodInvocationInfo FromCollectionElementInitializer(
BoundCollectionElementInitializer
colElement)
4847
if (element is
BoundCollectionElementInitializer
colElement)
4855
if (spreadElement.IteratorBody is BoundExpressionStatement { Expression:
BoundCollectionElementInitializer
spreadElementInitializer })
4897
result = result.Intersect(expr is
BoundCollectionElementInitializer
colElement
5831
if (expr is
BoundCollectionElementInitializer
colElement)
Binder\Binder_Conversions.cs (2)
2232
case
BoundCollectionElementInitializer
collectionInitializer:
2262
static BoundExpression getCollectionInitializerElement(
BoundCollectionElementInitializer
collectionInitializer)
Binder\RefSafetyAnalysis.cs (2)
1390
if (spreadElement.IteratorBody is BoundExpressionStatement { Expression:
BoundCollectionElementInitializer
spreadElementInitializer })
1410
Debug.Assert(element is
BoundCollectionElementInitializer
or BoundExpression, $"Unexpected collection expression element {element}");
FlowAnalysis\AbstractFlowPass.cs (1)
3688
public override BoundNode VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
FlowAnalysis\NullableWalker.cs (8)
4091
case
BoundCollectionElementInitializer
initializer:
4550
completion += VisitCollectionElementInitializer((
BoundCollectionElementInitializer
)initializer, containingType, delayCompletionForType);
4837
private new void VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
4843
private InitializerCompletionAfterTargetType? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node, TypeSymbol containingType, bool delayCompletionForType)
4878
BoundCollectionElementInitializer
node,
4905
BoundCollectionElementInitializer
node,
4919
static MethodSymbol addMethodAsMemberOfContainingType(
BoundCollectionElementInitializer
node, TypeSymbol containingType, ref ImmutableArray<VisitResult> argumentResults)
7475
if (node is
BoundCollectionElementInitializer
Generated\BoundNodes.xml.Generated.cs (10)
7032
public
BoundCollectionElementInitializer
Update(MethodSymbol addMethod, ImmutableArray<BoundExpression> arguments, BoundExpression? implicitReceiverOpt, bool expanded, ImmutableArray<int> argsToParamsOpt, BitVector defaultArguments, bool invokedAsExtensionMethod, LookupResultKind resultKind, TypeSymbol type)
7036
var
result = new BoundCollectionElementInitializer(this.Syntax, addMethod, arguments, implicitReceiverOpt, expanded, argsToParamsOpt, defaultArguments, invokedAsExtensionMethod, resultKind, type, this.HasErrors);
9462
return VisitCollectionElementInitializer((
BoundCollectionElementInitializer
)node, arg);
9761
public virtual R VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node, A arg) => this.DefaultVisit(node, arg);
10002
public virtual BoundNode? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node) => this.DefaultVisit(node);
10841
public override BoundNode? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
12303
public override BoundNode? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
14713
public override BoundNode? VisitCollectionElementInitializer(
BoundCollectionElementInitializer
node)
14718
BoundCollectionElementInitializer
updatedNode;
17135
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;