4 instantiations of BoundObjectOrCollectionValuePlaceholder
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Conversions.cs (2)
985var implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(syntax, isNewInstance: true, _targetType) { WasCompilerGenerated = true }; 1769var implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(syntax, isNewInstance: true, targetType) { WasCompilerGenerated = true };
Binder\Binder_Expressions.cs (1)
5785var implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(typeSyntax, isForNewInstance, type) { WasCompilerGenerated = true };
Generated\BoundNodes.xml.Generated.cs (1)
679var result = new BoundObjectOrCollectionValuePlaceholder(this.Syntax, isNewInstance, type, this.HasErrors);
59 references to BoundObjectOrCollectionValuePlaceholder
Microsoft.CodeAnalysis.CSharp (59)
Binder\Binder.ValueChecks.cs (2)
2164if (receiver is BoundObjectOrCollectionValuePlaceholder && receiver.Type.IsAnonymousType) 2176if (receiver is BoundObjectOrCollectionValuePlaceholder placeholder)
Binder\Binder_Conversions.cs (4)
858CollectionExpressionTypeKind collectionTypeKind, ImmutableArray<BoundNode> elements, BoundObjectOrCollectionValuePlaceholder? placeholder = null, BoundExpression? collectionCreation = null, MethodSymbol? collectionBuilderMethod = null, BoundCollectionBuilderElementsPlaceholder? collectionBuilderElementsPlaceholder = null) 985var implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(syntax, isNewInstance: true, _targetType) { WasCompilerGenerated = true }; 1769var implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(syntax, isNewInstance: true, targetType) { WasCompilerGenerated = true }; 1800BoundObjectOrCollectionValuePlaceholder implicitReceiver,
Binder\Binder_Expressions.cs (13)
5785var implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(typeSyntax, isForNewInstance, type) { WasCompilerGenerated = true }; 5833BoundObjectOrCollectionValuePlaceholder implicitReceiver, 5884BoundObjectOrCollectionValuePlaceholder implicitReceiver) 5966BoundObjectOrCollectionValuePlaceholder implicitReceiver, 5982BoundObjectOrCollectionValuePlaceholder implicitReceiver, 5992BoundObjectOrCollectionValuePlaceholder implicitReceiver, 6232BoundObjectOrCollectionValuePlaceholder implicitReceiver, 6406BoundObjectOrCollectionValuePlaceholder implicitReceiver) 6500BoundObjectOrCollectionValuePlaceholder implicitReceiver) 6544BoundObjectOrCollectionValuePlaceholder implicitReceiver = null) 6584BoundObjectOrCollectionValuePlaceholder implicitReceiver) 6635BoundObjectOrCollectionValuePlaceholder implicitReceiver) 6736BoundObjectOrCollectionValuePlaceholder implicitReceiver,
Binder\RefSafetyAnalysis.cs (1)
284case BoundObjectOrCollectionValuePlaceholder:
FlowAnalysis\AbstractFlowPass.cs (1)
3696public override BoundNode VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node)
FlowAnalysis\NullableWalker.cs (1)
13205public override BoundNode? VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node)
Generated\BoundNodes.xml.Generated.cs (29)
675public BoundObjectOrCollectionValuePlaceholder Update(bool isNewInstance, TypeSymbol type) 679var result = new BoundObjectOrCollectionValuePlaceholder(this.Syntax, isNewInstance, type, this.HasErrors); 6530public BoundCollectionExpression(SyntaxNode syntax, CollectionExpressionTypeKind collectionTypeKind, BoundObjectOrCollectionValuePlaceholder? placeholder, BoundExpression? collectionCreation, MethodSymbol? collectionBuilderMethod, BoundCollectionBuilderElementsPlaceholder? collectionBuilderElementsPlaceholder, bool wasTargetTyped, bool hasWithElement, BoundUnconvertedCollectionExpression unconvertedCollectionExpression, ImmutableArray<BoundNode> elements, TypeSymbol type, bool hasErrors = false) 6554public BoundObjectOrCollectionValuePlaceholder? Placeholder { get; } 6565public BoundCollectionExpression Update(CollectionExpressionTypeKind collectionTypeKind, BoundObjectOrCollectionValuePlaceholder? placeholder, BoundExpression? collectionCreation, MethodSymbol? collectionBuilderMethod, BoundCollectionBuilderElementsPlaceholder? collectionBuilderElementsPlaceholder, bool wasTargetTyped, bool hasWithElement, BoundUnconvertedCollectionExpression unconvertedCollectionExpression, ImmutableArray<BoundNode> elements, TypeSymbol type) 6797protected BoundObjectInitializerExpressionBase(BoundKind kind, SyntaxNode syntax, BoundObjectOrCollectionValuePlaceholder placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false) 6810public BoundObjectOrCollectionValuePlaceholder Placeholder { get; } 6816public BoundObjectInitializerExpression(SyntaxNode syntax, BoundObjectOrCollectionValuePlaceholder placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false) 6830public BoundObjectInitializerExpression Update(BoundObjectOrCollectionValuePlaceholder placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type) 6938public BoundCollectionInitializerExpression(SyntaxNode syntax, BoundObjectOrCollectionValuePlaceholder placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false) 6952public BoundCollectionInitializerExpression Update(BoundObjectOrCollectionValuePlaceholder placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type) 8994return VisitObjectOrCollectionValuePlaceholder((BoundObjectOrCollectionValuePlaceholder)node, arg); 9459public virtual R VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node, A arg) => this.DefaultVisit(node, arg); 9697public virtual BoundNode? VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node) => this.DefaultVisit(node); 9955public override BoundNode? VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node) => null; 11015public override BoundNode? VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node) 12067BoundObjectOrCollectionValuePlaceholder? placeholder = node.Placeholder; 12119BoundObjectOrCollectionValuePlaceholder placeholder = (BoundObjectOrCollectionValuePlaceholder)this.Visit(node.Placeholder); 12140BoundObjectOrCollectionValuePlaceholder placeholder = (BoundObjectOrCollectionValuePlaceholder)this.Visit(node.Placeholder); 12653public override BoundNode? VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node) 12660BoundObjectOrCollectionValuePlaceholder updatedNode = node.Update(node.IsNewInstance, infoAndType.Type!); 14365BoundObjectOrCollectionValuePlaceholder? placeholder = node.Placeholder; 14469BoundObjectOrCollectionValuePlaceholder placeholder = (BoundObjectOrCollectionValuePlaceholder)this.Visit(node.Placeholder); 14523BoundObjectOrCollectionValuePlaceholder placeholder = (BoundObjectOrCollectionValuePlaceholder)this.Visit(node.Placeholder); 15351public override TreeDumperNode VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node, object? arg) => new TreeDumperNode("objectOrCollectionValuePlaceholder", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter.cs (1)
484public override BoundNode VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node)
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
434var placeholder = node.Placeholder;
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (3)
45var placeholder = objectInitializer.Placeholder; 54var placeholder = collectionInitializer.Placeholder; 106Debug.Assert(elementInitializer.ImplicitReceiverOpt is BoundObjectOrCollectionValuePlaceholder);
Operations\CSharpOperationFactory.cs (3)
276return CreateCollectionValuePlaceholderOperation((BoundObjectOrCollectionValuePlaceholder)boundNode); 778case BoundObjectOrCollectionValuePlaceholder implicitReceiver: 2972private IInstanceReferenceOperation CreateCollectionValuePlaceholderOperation(BoundObjectOrCollectionValuePlaceholder placeholder)