4 instantiations of BoundObjectOrCollectionValuePlaceholder
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Conversions.cs (2)
1044
var implicitReceiver = new
BoundObjectOrCollectionValuePlaceholder
(syntax, isNewInstance: true, _targetType) { WasCompilerGenerated = true };
1846
var implicitReceiver = new
BoundObjectOrCollectionValuePlaceholder
(syntax, isNewInstance: true, targetType) { WasCompilerGenerated = true };
Binder\Binder_Expressions.cs (1)
5805
var implicitReceiver = new
BoundObjectOrCollectionValuePlaceholder
(typeSyntax, isForNewInstance, type) { WasCompilerGenerated = true };
Generated\BoundNodes.xml.Generated.cs (1)
682
var result = new
BoundObjectOrCollectionValuePlaceholder
(this.Syntax, isNewInstance, type, this.HasErrors);
58 references to BoundObjectOrCollectionValuePlaceholder
Microsoft.CodeAnalysis.CSharp (58)
Binder\Binder_Conversions.cs (4)
916
CollectionExpressionTypeKind collectionTypeKind, ImmutableArray<BoundNode> elements,
BoundObjectOrCollectionValuePlaceholder
? placeholder = null, BoundExpression? collectionCreation = null, MethodSymbol? collectionBuilderMethod = null, BoundCollectionBuilderElementsPlaceholder? collectionBuilderElementsPlaceholder = null)
1044
var
implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(syntax, isNewInstance: true, _targetType) { WasCompilerGenerated = true };
1846
var
implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(syntax, isNewInstance: true, targetType) { WasCompilerGenerated = true };
1877
BoundObjectOrCollectionValuePlaceholder
implicitReceiver,
Binder\Binder_Expressions.cs (13)
5805
var
implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(typeSyntax, isForNewInstance, type) { WasCompilerGenerated = true };
5852
BoundObjectOrCollectionValuePlaceholder
implicitReceiver)
5892
BoundObjectOrCollectionValuePlaceholder
implicitReceiver)
5964
BoundObjectOrCollectionValuePlaceholder
implicitReceiver,
5980
BoundObjectOrCollectionValuePlaceholder
implicitReceiver,
5990
BoundObjectOrCollectionValuePlaceholder
implicitReceiver,
6229
BoundObjectOrCollectionValuePlaceholder
implicitReceiver,
6403
BoundObjectOrCollectionValuePlaceholder
implicitReceiver)
6496
BoundObjectOrCollectionValuePlaceholder
implicitReceiver)
6540
BoundObjectOrCollectionValuePlaceholder
implicitReceiver = null)
6580
BoundObjectOrCollectionValuePlaceholder
implicitReceiver)
6631
BoundObjectOrCollectionValuePlaceholder
implicitReceiver)
6732
BoundObjectOrCollectionValuePlaceholder
implicitReceiver,
Binder\Binder.ValueChecks.cs (2)
2157
if (receiver is
BoundObjectOrCollectionValuePlaceholder
&& receiver.Type.IsAnonymousType)
2169
if (receiver is
BoundObjectOrCollectionValuePlaceholder
placeholder)
FlowAnalysis\AbstractFlowPass.cs (1)
3706
public override BoundNode VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node)
FlowAnalysis\NullableWalker.cs (1)
13851
public override BoundNode? VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node)
Generated\BoundNodes.xml.Generated.cs (29)
678
public
BoundObjectOrCollectionValuePlaceholder
Update(bool isNewInstance, TypeSymbol type)
682
var
result = new BoundObjectOrCollectionValuePlaceholder(this.Syntax, isNewInstance, type, this.HasErrors);
6547
public 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)
6571
public
BoundObjectOrCollectionValuePlaceholder
? Placeholder { get; }
6582
public BoundCollectionExpression Update(CollectionExpressionTypeKind collectionTypeKind,
BoundObjectOrCollectionValuePlaceholder
? placeholder, BoundExpression? collectionCreation, MethodSymbol? collectionBuilderMethod, BoundCollectionBuilderElementsPlaceholder? collectionBuilderElementsPlaceholder, bool wasTargetTyped, bool hasWithElement, BoundUnconvertedCollectionExpression unconvertedCollectionExpression, ImmutableArray<BoundNode> elements, TypeSymbol type)
6814
protected BoundObjectInitializerExpressionBase(BoundKind kind, SyntaxNode syntax,
BoundObjectOrCollectionValuePlaceholder
placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false)
6827
public
BoundObjectOrCollectionValuePlaceholder
Placeholder { get; }
6833
public BoundObjectInitializerExpression(SyntaxNode syntax,
BoundObjectOrCollectionValuePlaceholder
placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false)
6847
public BoundObjectInitializerExpression Update(
BoundObjectOrCollectionValuePlaceholder
placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type)
6955
public BoundCollectionInitializerExpression(SyntaxNode syntax,
BoundObjectOrCollectionValuePlaceholder
placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false)
6969
public BoundCollectionInitializerExpression Update(
BoundObjectOrCollectionValuePlaceholder
placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type)
9098
return VisitObjectOrCollectionValuePlaceholder((
BoundObjectOrCollectionValuePlaceholder
)node, arg);
9569
public virtual R VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node, A arg) => this.DefaultVisit(node, arg);
9810
public virtual BoundNode? VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node) => this.DefaultVisit(node);
10071
public override BoundNode? VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node) => null;
11160
public override BoundNode? VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node)
12220
BoundObjectOrCollectionValuePlaceholder
? placeholder = node.Placeholder;
12272
BoundObjectOrCollectionValuePlaceholder
placeholder = (
BoundObjectOrCollectionValuePlaceholder
)this.Visit(node.Placeholder);
12293
BoundObjectOrCollectionValuePlaceholder
placeholder = (
BoundObjectOrCollectionValuePlaceholder
)this.Visit(node.Placeholder);
12822
public override BoundNode? VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node)
12829
BoundObjectOrCollectionValuePlaceholder
updatedNode = node.Update(node.IsNewInstance, infoAndType.Type!);
14539
BoundObjectOrCollectionValuePlaceholder
? placeholder = node.Placeholder;
14643
BoundObjectOrCollectionValuePlaceholder
placeholder = (
BoundObjectOrCollectionValuePlaceholder
)this.Visit(node.Placeholder);
14697
BoundObjectOrCollectionValuePlaceholder
placeholder = (
BoundObjectOrCollectionValuePlaceholder
)this.Visit(node.Placeholder);
15553
public override TreeDumperNode VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node, object? arg) => new TreeDumperNode("objectOrCollectionValuePlaceholder", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
499
var
placeholder = node.Placeholder;
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (3)
45
var
placeholder = objectInitializer.Placeholder;
54
var
placeholder = collectionInitializer.Placeholder;
106
Debug.Assert(elementInitializer.ImplicitReceiverOpt is
BoundObjectOrCollectionValuePlaceholder
);
Lowering\LocalRewriter\LocalRewriter.cs (1)
485
public override BoundNode VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node)
Operations\CSharpOperationFactory.cs (3)
276
return CreateCollectionValuePlaceholderOperation((
BoundObjectOrCollectionValuePlaceholder
)boundNode);
778
case
BoundObjectOrCollectionValuePlaceholder
implicitReceiver:
3016
private IInstanceReferenceOperation CreateCollectionValuePlaceholderOperation(
BoundObjectOrCollectionValuePlaceholder
placeholder)