1 write to CollectionCreation
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
6555this.CollectionCreation = collectionCreation;
26 references to CollectionCreation
Microsoft.CodeAnalysis.CSharp (26)
Binder\Binder.ValueChecks.cs (3)
4803Debug.Assert(expr.CollectionCreation is not null); 4811return GetValEscape(expr.CollectionCreation); 4814var receiverScope = expr.CollectionCreation is { } collectionCreation
Binder\RefSafetyAnalysis.cs (2)
1352if (node.CollectionCreation is { } collectionCreation) 1447if (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)
2077Visit(node.CollectionCreation);
FlowAnalysis\NullableWalker.cs (2)
4091Visit(node.CollectionCreation); 4216var collectionCreation = node.CollectionCreation;
FlowAnalysis\NullableWalker.DebugVerifier.cs (1)
127Visit(node.CollectionCreation);
Generated\BoundNodes.xml.Generated.cs (5)
6582if (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)) 10782this.Visit(node.CollectionCreation); 12219BoundExpression? collectionCreation = (BoundExpression?)this.Visit(node.CollectionCreation); 14538BoundExpression? collectionCreation = (BoundExpression?)this.Visit(node.CollectionCreation); 17015new TreeDumperNode("collectionCreation", null, new TreeDumperNode[] { Visit(node.CollectionCreation, null) }),
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (7)
64var rewrittenReceiver = node.HasWithElement ? VisitExpression(node.CollectionCreation) : null; 424var rewrittenReceiver = VisitExpression(node.CollectionCreation); 498Debug.Assert(node.CollectionCreation is null); 551Debug.Assert(node.CollectionCreation is null or BoundObjectCreationExpression); 557rewrittenReceiver: VisitExpression(node.CollectionCreation)); 583Debug.Assert(node.CollectionCreation is { }); 606var result = VisitExpression(node.CollectionCreation);
Operations\CSharpOperationFactory.cs (2)
1285return (expr.CollectionCreation as BoundObjectCreationExpression)?.Constructor; 1296var collectionCreation = expr.CollectionCreation;