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