4 instantiations of BoundObjectOrCollectionValuePlaceholder
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Conversions.cs (2)
985
var implicitReceiver = new
BoundObjectOrCollectionValuePlaceholder
(syntax, isNewInstance: true, _targetType) { WasCompilerGenerated = true };
1769
var implicitReceiver = new
BoundObjectOrCollectionValuePlaceholder
(syntax, isNewInstance: true, targetType) { WasCompilerGenerated = true };
Binder\Binder_Expressions.cs (1)
5785
var implicitReceiver = new
BoundObjectOrCollectionValuePlaceholder
(typeSyntax, isForNewInstance, type) { WasCompilerGenerated = true };
Generated\BoundNodes.xml.Generated.cs (1)
679
var result = new
BoundObjectOrCollectionValuePlaceholder
(this.Syntax, isNewInstance, type, this.HasErrors);
59 references to BoundObjectOrCollectionValuePlaceholder
Microsoft.CodeAnalysis.CSharp (59)
Binder\Binder.ValueChecks.cs (2)
2164
if (receiver is
BoundObjectOrCollectionValuePlaceholder
&& receiver.Type.IsAnonymousType)
2176
if (receiver is
BoundObjectOrCollectionValuePlaceholder
placeholder)
Binder\Binder_Conversions.cs (4)
858
CollectionExpressionTypeKind collectionTypeKind, ImmutableArray<BoundNode> elements,
BoundObjectOrCollectionValuePlaceholder
? placeholder = null, BoundExpression? collectionCreation = null, MethodSymbol? collectionBuilderMethod = null, BoundCollectionBuilderElementsPlaceholder? collectionBuilderElementsPlaceholder = null)
985
var
implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(syntax, isNewInstance: true, _targetType) { WasCompilerGenerated = true };
1769
var
implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(syntax, isNewInstance: true, targetType) { WasCompilerGenerated = true };
1800
BoundObjectOrCollectionValuePlaceholder
implicitReceiver,
Binder\Binder_Expressions.cs (13)
5785
var
implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(typeSyntax, isForNewInstance, type) { WasCompilerGenerated = true };
5833
BoundObjectOrCollectionValuePlaceholder
implicitReceiver,
5884
BoundObjectOrCollectionValuePlaceholder
implicitReceiver)
5966
BoundObjectOrCollectionValuePlaceholder
implicitReceiver,
5982
BoundObjectOrCollectionValuePlaceholder
implicitReceiver,
5992
BoundObjectOrCollectionValuePlaceholder
implicitReceiver,
6231
BoundObjectOrCollectionValuePlaceholder
implicitReceiver,
6405
BoundObjectOrCollectionValuePlaceholder
implicitReceiver)
6499
BoundObjectOrCollectionValuePlaceholder
implicitReceiver)
6543
BoundObjectOrCollectionValuePlaceholder
implicitReceiver = null)
6583
BoundObjectOrCollectionValuePlaceholder
implicitReceiver)
6634
BoundObjectOrCollectionValuePlaceholder
implicitReceiver)
6735
BoundObjectOrCollectionValuePlaceholder
implicitReceiver,
Binder\RefSafetyAnalysis.cs (1)
284
case
BoundObjectOrCollectionValuePlaceholder
:
FlowAnalysis\AbstractFlowPass.cs (1)
3696
public override BoundNode VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node)
FlowAnalysis\NullableWalker.cs (1)
13205
public override BoundNode? VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node)
Generated\BoundNodes.xml.Generated.cs (29)
675
public
BoundObjectOrCollectionValuePlaceholder
Update(bool isNewInstance, TypeSymbol type)
679
var
result = new BoundObjectOrCollectionValuePlaceholder(this.Syntax, isNewInstance, type, this.HasErrors);
6532
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)
6556
public
BoundObjectOrCollectionValuePlaceholder
? Placeholder { get; }
6567
public BoundCollectionExpression Update(CollectionExpressionTypeKind collectionTypeKind,
BoundObjectOrCollectionValuePlaceholder
? placeholder, BoundExpression? collectionCreation, MethodSymbol? collectionBuilderMethod, BoundCollectionBuilderElementsPlaceholder? collectionBuilderElementsPlaceholder, bool wasTargetTyped, bool hasWithElement, BoundUnconvertedCollectionExpression unconvertedCollectionExpression, ImmutableArray<BoundNode> elements, TypeSymbol type)
6799
protected BoundObjectInitializerExpressionBase(BoundKind kind, SyntaxNode syntax,
BoundObjectOrCollectionValuePlaceholder
placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false)
6812
public
BoundObjectOrCollectionValuePlaceholder
Placeholder { get; }
6818
public BoundObjectInitializerExpression(SyntaxNode syntax,
BoundObjectOrCollectionValuePlaceholder
placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false)
6832
public BoundObjectInitializerExpression Update(
BoundObjectOrCollectionValuePlaceholder
placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type)
6940
public BoundCollectionInitializerExpression(SyntaxNode syntax,
BoundObjectOrCollectionValuePlaceholder
placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false)
6954
public BoundCollectionInitializerExpression Update(
BoundObjectOrCollectionValuePlaceholder
placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type)
8996
return VisitObjectOrCollectionValuePlaceholder((
BoundObjectOrCollectionValuePlaceholder
)node, arg);
9461
public virtual R VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node, A arg) => this.DefaultVisit(node, arg);
9699
public virtual BoundNode? VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node) => this.DefaultVisit(node);
9957
public override BoundNode? VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node) => null;
11017
public override BoundNode? VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node)
12069
BoundObjectOrCollectionValuePlaceholder
? placeholder = node.Placeholder;
12121
BoundObjectOrCollectionValuePlaceholder
placeholder = (
BoundObjectOrCollectionValuePlaceholder
)this.Visit(node.Placeholder);
12142
BoundObjectOrCollectionValuePlaceholder
placeholder = (
BoundObjectOrCollectionValuePlaceholder
)this.Visit(node.Placeholder);
12655
public override BoundNode? VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node)
12662
BoundObjectOrCollectionValuePlaceholder
updatedNode = node.Update(node.IsNewInstance, infoAndType.Type!);
14367
BoundObjectOrCollectionValuePlaceholder
? placeholder = node.Placeholder;
14471
BoundObjectOrCollectionValuePlaceholder
placeholder = (
BoundObjectOrCollectionValuePlaceholder
)this.Visit(node.Placeholder);
14525
BoundObjectOrCollectionValuePlaceholder
placeholder = (
BoundObjectOrCollectionValuePlaceholder
)this.Visit(node.Placeholder);
15353
public override TreeDumperNode VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node, object? arg) => new TreeDumperNode("objectOrCollectionValuePlaceholder", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter.cs (1)
484
public override BoundNode VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node)
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
434
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
);
Operations\CSharpOperationFactory.cs (3)
276
return CreateCollectionValuePlaceholderOperation((
BoundObjectOrCollectionValuePlaceholder
)boundNode);
778
case
BoundObjectOrCollectionValuePlaceholder
implicitReceiver:
2972
private IInstanceReferenceOperation CreateCollectionValuePlaceholderOperation(
BoundObjectOrCollectionValuePlaceholder
placeholder)