4 instantiations of BoundObjectOrCollectionValuePlaceholder
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Conversions.cs (2)
899implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(syntax, isNewInstance: true, targetType) { WasCompilerGenerated = true }; 1258var implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(syntax, isNewInstance: true, targetType) { WasCompilerGenerated = true };
Binder\Binder_Expressions.cs (1)
5707var implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(typeSyntax, isForNewInstance, type) { WasCompilerGenerated = true };
Generated\BoundNodes.xml.Generated.cs (1)
677var result = new BoundObjectOrCollectionValuePlaceholder(this.Syntax, isNewInstance, type, this.HasErrors);
58 references to BoundObjectOrCollectionValuePlaceholder
Microsoft.CodeAnalysis.CSharp (58)
Binder\Binder.ValueChecks.cs (2)
2147if (receiver is BoundObjectOrCollectionValuePlaceholder && receiver.Type.IsAnonymousType) 2159if (receiver is BoundObjectOrCollectionValuePlaceholder placeholder)
Binder\Binder_Conversions.cs (3)
887BoundObjectOrCollectionValuePlaceholder? implicitReceiver = null; 1258var implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(syntax, isNewInstance: true, targetType) { WasCompilerGenerated = true }; 1286BoundObjectOrCollectionValuePlaceholder implicitReceiver,
Binder\Binder_Expressions.cs (13)
5707var implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(typeSyntax, isForNewInstance, type) { WasCompilerGenerated = true }; 5755BoundObjectOrCollectionValuePlaceholder implicitReceiver, 5806BoundObjectOrCollectionValuePlaceholder implicitReceiver) 5888BoundObjectOrCollectionValuePlaceholder implicitReceiver, 5904BoundObjectOrCollectionValuePlaceholder implicitReceiver, 5914BoundObjectOrCollectionValuePlaceholder implicitReceiver, 6154BoundObjectOrCollectionValuePlaceholder implicitReceiver, 6328BoundObjectOrCollectionValuePlaceholder implicitReceiver) 6422BoundObjectOrCollectionValuePlaceholder implicitReceiver) 6466BoundObjectOrCollectionValuePlaceholder implicitReceiver = null) 6506BoundObjectOrCollectionValuePlaceholder implicitReceiver) 6557BoundObjectOrCollectionValuePlaceholder implicitReceiver) 6658BoundObjectOrCollectionValuePlaceholder implicitReceiver,
Binder\RefSafetyAnalysis.cs (1)
284case BoundObjectOrCollectionValuePlaceholder:
FlowAnalysis\AbstractFlowPass.cs (1)
3695public override BoundNode VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node)
FlowAnalysis\NullableWalker.cs (1)
13020public override BoundNode? VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node)
Generated\BoundNodes.xml.Generated.cs (29)
673public BoundObjectOrCollectionValuePlaceholder Update(bool isNewInstance, TypeSymbol type) 677var result = new BoundObjectOrCollectionValuePlaceholder(this.Syntax, isNewInstance, type, this.HasErrors); 6460public 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) 6480public BoundObjectOrCollectionValuePlaceholder? Placeholder { get; } 6491public BoundCollectionExpression Update(CollectionExpressionTypeKind collectionTypeKind, BoundObjectOrCollectionValuePlaceholder? placeholder, BoundExpression? collectionCreation, MethodSymbol? collectionBuilderMethod, BoundValuePlaceholder? collectionBuilderInvocationPlaceholder, BoundExpression? collectionBuilderInvocationConversion, bool wasTargetTyped, BoundUnconvertedCollectionExpression unconvertedCollectionExpression, ImmutableArray<BoundNode> elements, TypeSymbol type) 6723protected BoundObjectInitializerExpressionBase(BoundKind kind, SyntaxNode syntax, BoundObjectOrCollectionValuePlaceholder placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false) 6736public BoundObjectOrCollectionValuePlaceholder Placeholder { get; } 6742public BoundObjectInitializerExpression(SyntaxNode syntax, BoundObjectOrCollectionValuePlaceholder placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false) 6756public BoundObjectInitializerExpression Update(BoundObjectOrCollectionValuePlaceholder placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type) 6864public BoundCollectionInitializerExpression(SyntaxNode syntax, BoundObjectOrCollectionValuePlaceholder placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false) 6878public BoundCollectionInitializerExpression Update(BoundObjectOrCollectionValuePlaceholder placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type) 8920return VisitObjectOrCollectionValuePlaceholder((BoundObjectOrCollectionValuePlaceholder)node, arg); 9381public virtual R VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node, A arg) => this.DefaultVisit(node, arg); 9617public virtual BoundNode? VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node) => this.DefaultVisit(node); 9873public override BoundNode? VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node) => null; 10925public override BoundNode? VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node) 11966BoundObjectOrCollectionValuePlaceholder? placeholder = node.Placeholder; 12019BoundObjectOrCollectionValuePlaceholder placeholder = (BoundObjectOrCollectionValuePlaceholder)this.Visit(node.Placeholder); 12040BoundObjectOrCollectionValuePlaceholder placeholder = (BoundObjectOrCollectionValuePlaceholder)this.Visit(node.Placeholder); 12553public override BoundNode? VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node) 12560BoundObjectOrCollectionValuePlaceholder updatedNode = node.Update(node.IsNewInstance, infoAndType.Type!); 14252BoundObjectOrCollectionValuePlaceholder? placeholder = node.Placeholder; 14357BoundObjectOrCollectionValuePlaceholder placeholder = (BoundObjectOrCollectionValuePlaceholder)this.Visit(node.Placeholder); 14411BoundObjectOrCollectionValuePlaceholder placeholder = (BoundObjectOrCollectionValuePlaceholder)this.Visit(node.Placeholder); 15239public override TreeDumperNode VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node, object? arg) => new TreeDumperNode("objectOrCollectionValuePlaceholder", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter.cs (1)
479public override BoundNode VisitObjectOrCollectionValuePlaceholder(BoundObjectOrCollectionValuePlaceholder node)
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
403var 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: 2922private IInstanceReferenceOperation CreateCollectionValuePlaceholderOperation(BoundObjectOrCollectionValuePlaceholder placeholder)