1 write to CollectionCreation
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
6559
this.
CollectionCreation
= collectionCreation;
25 references to CollectionCreation
Microsoft.CodeAnalysis.CSharp (25)
Binder\Binder.ValueChecks.cs (3)
4788
Debug.Assert(expr.
CollectionCreation
is not null);
4796
return GetValEscape(expr.
CollectionCreation
);
4799
var receiverScope = expr.
CollectionCreation
is { } collectionCreation
Binder\RefSafetyAnalysis.cs (2)
1406
if (node.
CollectionCreation
is { } collectionCreation)
1501
if (node.
CollectionCreation
is BoundObjectCreationExpression { Constructor: { } } objectCreation && !node.Elements.IsEmpty)
BoundTree\BoundCollectionExpression.cs (3)
20
Debug.Assert(this.
CollectionCreation
is not null);
38
/// Returns <see cref="
CollectionCreation
"/> with any outer <see cref="BoundConversion"/> nodes unwrapped. The
51
var collectionCreation = this.
CollectionCreation
;
FlowAnalysis\AbstractFlowPass.cs (1)
2087
Visit(node.
CollectionCreation
);
FlowAnalysis\NullableWalker.cs (2)
4126
Visit(node.
CollectionCreation
);
4251
var collectionCreation = node.
CollectionCreation
;
Generated\BoundNodes.xml.Generated.cs (5)
6586
if (collectionTypeKind != this.CollectionTypeKind || placeholder != this.Placeholder || collectionCreation != this.
CollectionCreation
|| !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(collectionBuilderMethod, this.CollectionBuilderMethod) || collectionBuilderElementsPlaceholder != this.CollectionBuilderElementsPlaceholder || wasTargetTyped != this.WasTargetTyped || hasWithElement != this.HasWithElement || unconvertedCollectionExpression != this.UnconvertedCollectionExpression || elements != this.Elements || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
10786
this.Visit(node.
CollectionCreation
);
12223
BoundExpression? collectionCreation = (BoundExpression?)this.Visit(node.
CollectionCreation
);
14542
BoundExpression? collectionCreation = (BoundExpression?)this.Visit(node.
CollectionCreation
);
17020
new TreeDumperNode("collectionCreation", null, new TreeDumperNode[] { Visit(node.
CollectionCreation
, null) }),
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (7)
64
var rewrittenReceiver = node.HasWithElement ? VisitExpression(node.
CollectionCreation
) : null;
489
var rewrittenReceiver = VisitExpression(node.
CollectionCreation
);
563
Debug.Assert(node.
CollectionCreation
is null);
616
Debug.Assert(node.
CollectionCreation
is null or BoundObjectCreationExpression);
622
rewrittenReceiver: VisitExpression(node.
CollectionCreation
));
648
Debug.Assert(node.
CollectionCreation
is { });
671
var result = VisitExpression(node.
CollectionCreation
);
Operations\CSharpOperationFactory.cs (2)
1304
return (expr.
CollectionCreation
as BoundObjectCreationExpression)?.Constructor;
1315
var collectionCreation = expr.
CollectionCreation
;