2 instantiations of BoundObjectOrCollectionValuePlaceholder
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
5617var implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(typeSyntax, isForNewInstance, type) { WasCompilerGenerated = true };
Generated\BoundNodes.xml.Generated.cs (1)
698var result = new BoundObjectOrCollectionValuePlaceholder(this.Syntax, isNewInstance, type, this.HasErrors);
55 references to BoundObjectOrCollectionValuePlaceholder
Microsoft.CodeAnalysis.CSharp (55)
Binder\Binder.ValueChecks.cs (2)
1890if (receiver is BoundObjectOrCollectionValuePlaceholder && receiver.Type.IsAnonymousType) 1902if (receiver is BoundObjectOrCollectionValuePlaceholder placeholder)
Binder\Binder_Expressions.cs (13)
5617var implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(typeSyntax, isForNewInstance, type) { WasCompilerGenerated = true }; 5665BoundObjectOrCollectionValuePlaceholder implicitReceiver, 5716BoundObjectOrCollectionValuePlaceholder implicitReceiver) 5798BoundObjectOrCollectionValuePlaceholder implicitReceiver, 5814BoundObjectOrCollectionValuePlaceholder implicitReceiver, 5824BoundObjectOrCollectionValuePlaceholder implicitReceiver, 6064BoundObjectOrCollectionValuePlaceholder implicitReceiver, 6238BoundObjectOrCollectionValuePlaceholder implicitReceiver) 6332BoundObjectOrCollectionValuePlaceholder implicitReceiver) 6376BoundObjectOrCollectionValuePlaceholder implicitReceiver = null) 6416BoundObjectOrCollectionValuePlaceholder implicitReceiver) 6467BoundObjectOrCollectionValuePlaceholder implicitReceiver) 6568BoundObjectOrCollectionValuePlaceholder implicitReceiver,
Binder\RefSafetyAnalysis.cs (1)
235case BoundObjectOrCollectionValuePlaceholder:
FlowAnalysis\AbstractFlowPass.cs (1)
3675public override BoundNode VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node)
FlowAnalysis\NullableWalker.cs (1)
12242public override BoundNode? VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node)
Generated\BoundNodes.xml.Generated.cs (29)
694public BoundObjectOrCollectionValuePlaceholder Update(bool isNewInstance, TypeSymbol type) 698var result = new BoundObjectOrCollectionValuePlaceholder(this.Syntax, isNewInstance, type, this.HasErrors); 6432public BoundCollectionExpression(SyntaxNode syntax, CollectionExpressionTypeKind collectionTypeKind, BoundObjectOrCollectionValuePlaceholder? placeholder, BoundExpression? collectionCreation, MethodSymbol? collectionBuilderMethod, BoundValuePlaceholder? collectionBuilderInvocationPlaceholder, BoundExpression? collectionBuilderInvocationConversion, bool wasTargetTyped, BoundUnconvertedCollectionExpression unconvertedCollectionExpression, ImmutableArray<BoundNode> elements, TypeSymbol type, bool hasErrors = false) 6452public BoundObjectOrCollectionValuePlaceholder? Placeholder { get; } 6463public BoundCollectionExpression Update(CollectionExpressionTypeKind collectionTypeKind, BoundObjectOrCollectionValuePlaceholder? placeholder, BoundExpression? collectionCreation, MethodSymbol? collectionBuilderMethod, BoundValuePlaceholder? collectionBuilderInvocationPlaceholder, BoundExpression? collectionBuilderInvocationConversion, bool wasTargetTyped, BoundUnconvertedCollectionExpression unconvertedCollectionExpression, ImmutableArray<BoundNode> elements, TypeSymbol type) 6695protected BoundObjectInitializerExpressionBase(BoundKind kind, SyntaxNode syntax, BoundObjectOrCollectionValuePlaceholder placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false) 6708public BoundObjectOrCollectionValuePlaceholder Placeholder { get; } 6714public BoundObjectInitializerExpression(SyntaxNode syntax, BoundObjectOrCollectionValuePlaceholder placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false) 6728public BoundObjectInitializerExpression Update(BoundObjectOrCollectionValuePlaceholder placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type) 6836public BoundCollectionInitializerExpression(SyntaxNode syntax, BoundObjectOrCollectionValuePlaceholder placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false) 6850public BoundCollectionInitializerExpression Update(BoundObjectOrCollectionValuePlaceholder placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type) 8888return VisitObjectOrCollectionValuePlaceholder((BoundObjectOrCollectionValuePlaceholder)node, arg); 9349public virtual R VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node, A arg) => this.DefaultVisit(node, arg); 9585public virtual BoundNode? VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node) => this.DefaultVisit(node); 9841public override BoundNode? VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node) => null; 10892public override BoundNode? VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node) 11928BoundObjectOrCollectionValuePlaceholder? placeholder = node.Placeholder; 11981BoundObjectOrCollectionValuePlaceholder placeholder = (BoundObjectOrCollectionValuePlaceholder)this.Visit(node.Placeholder); 12002BoundObjectOrCollectionValuePlaceholder placeholder = (BoundObjectOrCollectionValuePlaceholder)this.Visit(node.Placeholder); 12515public override BoundNode? VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node) 12522BoundObjectOrCollectionValuePlaceholder updatedNode = node.Update(node.IsNewInstance, infoAndType.Type!); 14223BoundObjectOrCollectionValuePlaceholder? placeholder = node.Placeholder; 14328BoundObjectOrCollectionValuePlaceholder placeholder = (BoundObjectOrCollectionValuePlaceholder)this.Visit(node.Placeholder); 14382BoundObjectOrCollectionValuePlaceholder placeholder = (BoundObjectOrCollectionValuePlaceholder)this.Visit(node.Placeholder); 15220public override TreeDumperNode VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node, object? arg) => new TreeDumperNode("objectOrCollectionValuePlaceholder", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter.cs (1)
475public override BoundNode VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node)
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
347var 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)
277return CreateCollectionValuePlaceholderOperation((BoundObjectOrCollectionValuePlaceholder)boundNode); 763case BoundObjectOrCollectionValuePlaceholder implicitReceiver: 2931private IInstanceReferenceOperation CreateCollectionValuePlaceholderOperation(BoundObjectOrCollectionValuePlaceholder placeholder)