2 instantiations of BoundObjectOrCollectionValuePlaceholder
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
5566
var implicitReceiver = new
BoundObjectOrCollectionValuePlaceholder
(typeSyntax, isForNewInstance, type) { WasCompilerGenerated = true };
Generated\BoundNodes.xml.Generated.cs (1)
698
var result = new
BoundObjectOrCollectionValuePlaceholder
(this.Syntax, isNewInstance, type, this.HasErrors);
54 references to BoundObjectOrCollectionValuePlaceholder
Microsoft.CodeAnalysis.CSharp (54)
Binder\Binder.ValueChecks.cs (2)
1860
if (receiver is
BoundObjectOrCollectionValuePlaceholder
&& receiver.Type.IsAnonymousType)
1872
if (receiver is
BoundObjectOrCollectionValuePlaceholder
placeholder)
Binder\Binder_Expressions.cs (13)
5566
var
implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(typeSyntax, isForNewInstance, type) { WasCompilerGenerated = true };
5614
BoundObjectOrCollectionValuePlaceholder
implicitReceiver,
5665
BoundObjectOrCollectionValuePlaceholder
implicitReceiver)
5747
BoundObjectOrCollectionValuePlaceholder
implicitReceiver,
5763
BoundObjectOrCollectionValuePlaceholder
implicitReceiver,
5773
BoundObjectOrCollectionValuePlaceholder
implicitReceiver,
6013
BoundObjectOrCollectionValuePlaceholder
implicitReceiver,
6187
BoundObjectOrCollectionValuePlaceholder
implicitReceiver)
6281
BoundObjectOrCollectionValuePlaceholder
implicitReceiver)
6325
BoundObjectOrCollectionValuePlaceholder
implicitReceiver = null)
6365
BoundObjectOrCollectionValuePlaceholder
implicitReceiver)
6416
BoundObjectOrCollectionValuePlaceholder
implicitReceiver)
6517
BoundObjectOrCollectionValuePlaceholder
implicitReceiver,
Binder\RefSafetyAnalysis.cs (1)
235
case
BoundObjectOrCollectionValuePlaceholder
:
FlowAnalysis\AbstractFlowPass.cs (1)
3663
public override BoundNode VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node)
FlowAnalysis\NullableWalker.cs (1)
12122
public override BoundNode? VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node)
Generated\BoundNodes.xml.Generated.cs (29)
694
public
BoundObjectOrCollectionValuePlaceholder
Update(bool isNewInstance, TypeSymbol type)
698
var
result = new BoundObjectOrCollectionValuePlaceholder(this.Syntax, isNewInstance, type, this.HasErrors);
6434
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)
6454
public
BoundObjectOrCollectionValuePlaceholder
? Placeholder { get; }
6465
public BoundCollectionExpression Update(CollectionExpressionTypeKind collectionTypeKind,
BoundObjectOrCollectionValuePlaceholder
? placeholder, BoundExpression? collectionCreation, MethodSymbol? collectionBuilderMethod, BoundValuePlaceholder? collectionBuilderInvocationPlaceholder, BoundExpression? collectionBuilderInvocationConversion, bool wasTargetTyped, BoundUnconvertedCollectionExpression unconvertedCollectionExpression, ImmutableArray<BoundNode> elements, TypeSymbol type)
6697
protected BoundObjectInitializerExpressionBase(BoundKind kind, SyntaxNode syntax,
BoundObjectOrCollectionValuePlaceholder
placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false)
6710
public
BoundObjectOrCollectionValuePlaceholder
Placeholder { get; }
6716
public BoundObjectInitializerExpression(SyntaxNode syntax,
BoundObjectOrCollectionValuePlaceholder
placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false)
6730
public BoundObjectInitializerExpression Update(
BoundObjectOrCollectionValuePlaceholder
placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type)
6838
public BoundCollectionInitializerExpression(SyntaxNode syntax,
BoundObjectOrCollectionValuePlaceholder
placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false)
6852
public BoundCollectionInitializerExpression Update(
BoundObjectOrCollectionValuePlaceholder
placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type)
8890
return VisitObjectOrCollectionValuePlaceholder((
BoundObjectOrCollectionValuePlaceholder
)node, arg);
9351
public virtual R VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node, A arg) => this.DefaultVisit(node, arg);
9587
public virtual BoundNode? VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node) => this.DefaultVisit(node);
9843
public override BoundNode? VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node) => null;
10887
public override BoundNode? VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node)
11816
BoundObjectOrCollectionValuePlaceholder
? placeholder = node.Placeholder;
11868
BoundObjectOrCollectionValuePlaceholder
placeholder = (
BoundObjectOrCollectionValuePlaceholder
)this.Visit(node.Placeholder);
11888
BoundObjectOrCollectionValuePlaceholder
placeholder = (
BoundObjectOrCollectionValuePlaceholder
)this.Visit(node.Placeholder);
12371
public override BoundNode? VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node)
12378
BoundObjectOrCollectionValuePlaceholder
updatedNode = node.Update(node.IsNewInstance, infoAndType.Type!);
14080
BoundObjectOrCollectionValuePlaceholder
? placeholder = node.Placeholder;
14185
BoundObjectOrCollectionValuePlaceholder
placeholder = (
BoundObjectOrCollectionValuePlaceholder
)this.Visit(node.Placeholder);
14239
BoundObjectOrCollectionValuePlaceholder
placeholder = (
BoundObjectOrCollectionValuePlaceholder
)this.Visit(node.Placeholder);
15077
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)
347
var
placeholder = node.Placeholder;
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (2)
45
var
placeholder = objectInitializer.Placeholder;
54
var
placeholder = collectionInitializer.Placeholder;
Operations\CSharpOperationFactory.cs (3)
277
return CreateCollectionValuePlaceholderOperation((
BoundObjectOrCollectionValuePlaceholder
)boundNode);
763
case
BoundObjectOrCollectionValuePlaceholder
implicitReceiver:
2931
private IInstanceReferenceOperation CreateCollectionValuePlaceholderOperation(
BoundObjectOrCollectionValuePlaceholder
placeholder)