4 instantiations of BoundObjectOrCollectionValuePlaceholder
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Conversions.cs (2)
1044var implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(syntax, isNewInstance: true, _targetType) { WasCompilerGenerated = true }; 1846var implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(syntax, isNewInstance: true, targetType) { WasCompilerGenerated = true };
Binder\Binder_Expressions.cs (1)
5805var implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(typeSyntax, isForNewInstance, type) { WasCompilerGenerated = true };
Generated\BoundNodes.xml.Generated.cs (1)
682var result = new BoundObjectOrCollectionValuePlaceholder(this.Syntax, isNewInstance, type, this.HasErrors);
59 references to BoundObjectOrCollectionValuePlaceholder
Microsoft.CodeAnalysis.CSharp (59)
Binder\Binder_Conversions.cs (4)
916CollectionExpressionTypeKind collectionTypeKind, ImmutableArray<BoundNode> elements, BoundObjectOrCollectionValuePlaceholder? placeholder = null, BoundExpression? collectionCreation = null, MethodSymbol? collectionBuilderMethod = null, BoundCollectionBuilderElementsPlaceholder? collectionBuilderElementsPlaceholder = null) 1044var implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(syntax, isNewInstance: true, _targetType) { WasCompilerGenerated = true }; 1846var implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(syntax, isNewInstance: true, targetType) { WasCompilerGenerated = true }; 1877BoundObjectOrCollectionValuePlaceholder implicitReceiver,
Binder\Binder_Expressions.cs (13)
5805var implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(typeSyntax, isForNewInstance, type) { WasCompilerGenerated = true }; 5852BoundObjectOrCollectionValuePlaceholder implicitReceiver) 5892BoundObjectOrCollectionValuePlaceholder implicitReceiver) 5964BoundObjectOrCollectionValuePlaceholder implicitReceiver, 5980BoundObjectOrCollectionValuePlaceholder implicitReceiver, 5990BoundObjectOrCollectionValuePlaceholder implicitReceiver, 6229BoundObjectOrCollectionValuePlaceholder implicitReceiver, 6403BoundObjectOrCollectionValuePlaceholder implicitReceiver) 6496BoundObjectOrCollectionValuePlaceholder implicitReceiver) 6540BoundObjectOrCollectionValuePlaceholder implicitReceiver = null) 6580BoundObjectOrCollectionValuePlaceholder implicitReceiver) 6631BoundObjectOrCollectionValuePlaceholder implicitReceiver) 6732BoundObjectOrCollectionValuePlaceholder implicitReceiver,
Binder\Binder.ValueChecks.cs (2)
2172if (receiver is BoundObjectOrCollectionValuePlaceholder && receiver.Type.IsAnonymousType) 2184if (receiver is BoundObjectOrCollectionValuePlaceholder placeholder)
Binder\RefSafetyAnalysis.cs (1)
289case BoundObjectOrCollectionValuePlaceholder:
FlowAnalysis\AbstractFlowPass.cs (1)
3697public override BoundNode VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node)
FlowAnalysis\NullableWalker.cs (1)
13738public override BoundNode? VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node)
Generated\BoundNodes.xml.Generated.cs (29)
678public BoundObjectOrCollectionValuePlaceholder Update(bool isNewInstance, TypeSymbol type) 682var result = new BoundObjectOrCollectionValuePlaceholder(this.Syntax, isNewInstance, type, this.HasErrors); 6546public 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) 6570public BoundObjectOrCollectionValuePlaceholder? Placeholder { get; } 6581public BoundCollectionExpression Update(CollectionExpressionTypeKind collectionTypeKind, BoundObjectOrCollectionValuePlaceholder? placeholder, BoundExpression? collectionCreation, MethodSymbol? collectionBuilderMethod, BoundCollectionBuilderElementsPlaceholder? collectionBuilderElementsPlaceholder, bool wasTargetTyped, bool hasWithElement, BoundUnconvertedCollectionExpression unconvertedCollectionExpression, ImmutableArray<BoundNode> elements, TypeSymbol type) 6813protected BoundObjectInitializerExpressionBase(BoundKind kind, SyntaxNode syntax, BoundObjectOrCollectionValuePlaceholder placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false) 6826public BoundObjectOrCollectionValuePlaceholder Placeholder { get; } 6832public BoundObjectInitializerExpression(SyntaxNode syntax, BoundObjectOrCollectionValuePlaceholder placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false) 6846public BoundObjectInitializerExpression Update(BoundObjectOrCollectionValuePlaceholder placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type) 6954public BoundCollectionInitializerExpression(SyntaxNode syntax, BoundObjectOrCollectionValuePlaceholder placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false) 6968public BoundCollectionInitializerExpression Update(BoundObjectOrCollectionValuePlaceholder placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type) 9101return VisitObjectOrCollectionValuePlaceholder((BoundObjectOrCollectionValuePlaceholder)node, arg); 9572public virtual R VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node, A arg) => this.DefaultVisit(node, arg); 9813public virtual BoundNode? VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node) => this.DefaultVisit(node); 10074public override BoundNode? VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node) => null; 11165public override BoundNode? VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node) 12225BoundObjectOrCollectionValuePlaceholder? placeholder = node.Placeholder; 12277BoundObjectOrCollectionValuePlaceholder placeholder = (BoundObjectOrCollectionValuePlaceholder)this.Visit(node.Placeholder); 12298BoundObjectOrCollectionValuePlaceholder placeholder = (BoundObjectOrCollectionValuePlaceholder)this.Visit(node.Placeholder); 12829public override BoundNode? VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node) 12836BoundObjectOrCollectionValuePlaceholder updatedNode = node.Update(node.IsNewInstance, infoAndType.Type!); 14546BoundObjectOrCollectionValuePlaceholder? placeholder = node.Placeholder; 14650BoundObjectOrCollectionValuePlaceholder placeholder = (BoundObjectOrCollectionValuePlaceholder)this.Visit(node.Placeholder); 14704BoundObjectOrCollectionValuePlaceholder placeholder = (BoundObjectOrCollectionValuePlaceholder)this.Visit(node.Placeholder); 15562public override TreeDumperNode VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node, object? arg) => new TreeDumperNode("objectOrCollectionValuePlaceholder", null, new TreeDumperNode[]
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);
Lowering\LocalRewriter\LocalRewriter.cs (1)
485public override BoundNode VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node)
Operations\CSharpOperationFactory.cs (3)
276return CreateCollectionValuePlaceholderOperation((BoundObjectOrCollectionValuePlaceholder)boundNode); 778case BoundObjectOrCollectionValuePlaceholder implicitReceiver: 2997private IInstanceReferenceOperation CreateCollectionValuePlaceholderOperation(BoundObjectOrCollectionValuePlaceholder placeholder)