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