2 instantiations of BoundObjectOrCollectionValuePlaceholder
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
4767
var implicitReceiver = new
BoundObjectOrCollectionValuePlaceholder
(typeSyntax, isForNewInstance, type) { WasCompilerGenerated = true };
Generated\BoundNodes.xml.Generated.cs (1)
685
var result = new
BoundObjectOrCollectionValuePlaceholder
(this.Syntax, isNewInstance, type, this.HasErrors);
44 references to BoundObjectOrCollectionValuePlaceholder
Microsoft.CodeAnalysis.CSharp (44)
Binder\Binder.ValueChecks.cs (2)
1650
if (receiver is
BoundObjectOrCollectionValuePlaceholder
&& receiver.Type.IsAnonymousType)
1662
if (receiver is
BoundObjectOrCollectionValuePlaceholder
placeholder)
Binder\Binder_Expressions.cs (9)
4767
var
implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(typeSyntax, isForNewInstance, type) { WasCompilerGenerated = true };
4814
BoundObjectOrCollectionValuePlaceholder
implicitReceiver,
4865
BoundObjectOrCollectionValuePlaceholder
implicitReceiver)
4912
BoundObjectOrCollectionValuePlaceholder
implicitReceiver,
5142
BoundObjectOrCollectionValuePlaceholder
implicitReceiver,
5309
BoundObjectOrCollectionValuePlaceholder
implicitReceiver)
5396
BoundObjectOrCollectionValuePlaceholder
implicitReceiver)
5440
BoundObjectOrCollectionValuePlaceholder
implicitReceiver = null)
5480
BoundObjectOrCollectionValuePlaceholder
implicitReceiver)
Binder\RefSafetyAnalysis.cs (1)
240
&& node is not (
BoundObjectOrCollectionValuePlaceholder
or BoundInterpolatedStringHandlerPlaceholder))
FlowAnalysis\AbstractFlowPass.cs (1)
3467
public override BoundNode VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node)
FlowAnalysis\NullableWalker.cs (1)
11145
public override BoundNode? VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node)
Generated\BoundNodes.xml.Generated.cs (24)
681
public
BoundObjectOrCollectionValuePlaceholder
Update(bool isNewInstance, TypeSymbol type)
685
var
result = new BoundObjectOrCollectionValuePlaceholder(this.Syntax, isNewInstance, type, this.HasErrors);
6429
protected BoundObjectInitializerExpressionBase(BoundKind kind, SyntaxNode syntax,
BoundObjectOrCollectionValuePlaceholder
placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false)
6442
public
BoundObjectOrCollectionValuePlaceholder
Placeholder { get; }
6448
public BoundObjectInitializerExpression(SyntaxNode syntax,
BoundObjectOrCollectionValuePlaceholder
placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false)
6462
public BoundObjectInitializerExpression Update(
BoundObjectOrCollectionValuePlaceholder
placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type)
6568
public BoundCollectionInitializerExpression(SyntaxNode syntax,
BoundObjectOrCollectionValuePlaceholder
placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false)
6582
public BoundCollectionInitializerExpression Update(
BoundObjectOrCollectionValuePlaceholder
placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type)
8535
return VisitObjectOrCollectionValuePlaceholder((
BoundObjectOrCollectionValuePlaceholder
)node, arg);
8980
public virtual R VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node, A arg) => this.DefaultVisit(node, arg);
9208
public virtual BoundNode? VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node) => this.DefaultVisit(node);
9456
public override BoundNode? VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node) => null;
10471
public override BoundNode? VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node)
11404
BoundObjectOrCollectionValuePlaceholder
placeholder = (
BoundObjectOrCollectionValuePlaceholder
)this.Visit(node.Placeholder);
11424
BoundObjectOrCollectionValuePlaceholder
placeholder = (
BoundObjectOrCollectionValuePlaceholder
)this.Visit(node.Placeholder);
11900
public override BoundNode? VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node)
11907
BoundObjectOrCollectionValuePlaceholder
updatedNode = node.Update(node.IsNewInstance, infoAndType.Type!);
13629
BoundObjectOrCollectionValuePlaceholder
placeholder = (
BoundObjectOrCollectionValuePlaceholder
)this.Visit(node.Placeholder);
13683
BoundObjectOrCollectionValuePlaceholder
placeholder = (
BoundObjectOrCollectionValuePlaceholder
)this.Visit(node.Placeholder);
14503
public override TreeDumperNode VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node, object? arg) => new TreeDumperNode("objectOrCollectionValuePlaceholder", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter.cs (1)
410
public override BoundNode VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node)
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (2)
46
var
placeholder = objectInitializer.Placeholder;
55
var
placeholder = collectionInitializer.Placeholder;
Operations\CSharpOperationFactory.cs (3)
273
return CreateCollectionValuePlaceholderOperation((
BoundObjectOrCollectionValuePlaceholder
)boundNode);
760
case
BoundObjectOrCollectionValuePlaceholder
implicitReceiver:
2786
private IInstanceReferenceOperation CreateCollectionValuePlaceholderOperation(
BoundObjectOrCollectionValuePlaceholder
placeholder)