4 instantiations of BoundObjectOrCollectionValuePlaceholder
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Conversions.cs (2)
646
implicitReceiver = new
BoundObjectOrCollectionValuePlaceholder
(syntax, isNewInstance: true, targetType) { WasCompilerGenerated = true };
991
var implicitReceiver = new
BoundObjectOrCollectionValuePlaceholder
(syntax, isNewInstance: true, targetType) { WasCompilerGenerated = true };
Binder\Binder_Expressions.cs (1)
5525
var implicitReceiver = new
BoundObjectOrCollectionValuePlaceholder
(typeSyntax, isForNewInstance, type) { WasCompilerGenerated = true };
Generated\BoundNodes.xml.Generated.cs (1)
697
var result = new
BoundObjectOrCollectionValuePlaceholder
(this.Syntax, isNewInstance, type, this.HasErrors);
55 references to BoundObjectOrCollectionValuePlaceholder
Microsoft.CodeAnalysis.CSharp (55)
Binder\Binder.ValueChecks.cs (2)
1841
if (receiver is
BoundObjectOrCollectionValuePlaceholder
&& receiver.Type.IsAnonymousType)
1853
if (receiver is
BoundObjectOrCollectionValuePlaceholder
placeholder)
Binder\Binder_Conversions.cs (3)
642
BoundObjectOrCollectionValuePlaceholder
? implicitReceiver = null;
991
var
implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(syntax, isNewInstance: true, targetType) { WasCompilerGenerated = true };
1019
BoundObjectOrCollectionValuePlaceholder
implicitReceiver,
Binder\Binder_Expressions.cs (11)
5525
var
implicitReceiver = new BoundObjectOrCollectionValuePlaceholder(typeSyntax, isForNewInstance, type) { WasCompilerGenerated = true };
5573
BoundObjectOrCollectionValuePlaceholder
implicitReceiver,
5624
BoundObjectOrCollectionValuePlaceholder
implicitReceiver)
5671
BoundObjectOrCollectionValuePlaceholder
implicitReceiver,
5914
BoundObjectOrCollectionValuePlaceholder
implicitReceiver,
6088
BoundObjectOrCollectionValuePlaceholder
implicitReceiver)
6182
BoundObjectOrCollectionValuePlaceholder
implicitReceiver)
6226
BoundObjectOrCollectionValuePlaceholder
implicitReceiver = null)
6266
BoundObjectOrCollectionValuePlaceholder
implicitReceiver)
6317
BoundObjectOrCollectionValuePlaceholder
implicitReceiver)
6418
BoundObjectOrCollectionValuePlaceholder
implicitReceiver,
Binder\RefSafetyAnalysis.cs (1)
237
case
BoundObjectOrCollectionValuePlaceholder
:
FlowAnalysis\AbstractFlowPass.cs (1)
3569
public override BoundNode VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node)
FlowAnalysis\NullableWalker.cs (1)
11877
public override BoundNode? VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node)
Generated\BoundNodes.xml.Generated.cs (29)
693
public
BoundObjectOrCollectionValuePlaceholder
Update(bool isNewInstance, TypeSymbol type)
697
var
result = new BoundObjectOrCollectionValuePlaceholder(this.Syntax, isNewInstance, type, this.HasErrors);
6433
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)
6453
public
BoundObjectOrCollectionValuePlaceholder
? Placeholder { get; }
6464
public BoundCollectionExpression Update(CollectionExpressionTypeKind collectionTypeKind,
BoundObjectOrCollectionValuePlaceholder
? placeholder, BoundExpression? collectionCreation, MethodSymbol? collectionBuilderMethod, BoundValuePlaceholder? collectionBuilderInvocationPlaceholder, BoundExpression? collectionBuilderInvocationConversion, bool wasTargetTyped, BoundUnconvertedCollectionExpression unconvertedCollectionExpression, ImmutableArray<BoundNode> elements, TypeSymbol type)
6696
protected BoundObjectInitializerExpressionBase(BoundKind kind, SyntaxNode syntax,
BoundObjectOrCollectionValuePlaceholder
placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false)
6709
public
BoundObjectOrCollectionValuePlaceholder
Placeholder { get; }
6715
public BoundObjectInitializerExpression(SyntaxNode syntax,
BoundObjectOrCollectionValuePlaceholder
placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false)
6729
public BoundObjectInitializerExpression Update(
BoundObjectOrCollectionValuePlaceholder
placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type)
6837
public BoundCollectionInitializerExpression(SyntaxNode syntax,
BoundObjectOrCollectionValuePlaceholder
placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type, bool hasErrors = false)
6851
public BoundCollectionInitializerExpression Update(
BoundObjectOrCollectionValuePlaceholder
placeholder, ImmutableArray<BoundExpression> initializers, TypeSymbol type)
8851
return VisitObjectOrCollectionValuePlaceholder((
BoundObjectOrCollectionValuePlaceholder
)node, arg);
9312
public virtual R VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node, A arg) => this.DefaultVisit(node, arg);
9548
public virtual BoundNode? VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node) => this.DefaultVisit(node);
9804
public override BoundNode? VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node) => null;
10848
public override BoundNode? VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node)
11777
BoundObjectOrCollectionValuePlaceholder
? placeholder = node.Placeholder;
11829
BoundObjectOrCollectionValuePlaceholder
placeholder = (
BoundObjectOrCollectionValuePlaceholder
)this.Visit(node.Placeholder);
11849
BoundObjectOrCollectionValuePlaceholder
placeholder = (
BoundObjectOrCollectionValuePlaceholder
)this.Visit(node.Placeholder);
12332
public override BoundNode? VisitObjectOrCollectionValuePlaceholder(
BoundObjectOrCollectionValuePlaceholder
node)
12339
BoundObjectOrCollectionValuePlaceholder
updatedNode = node.Update(node.IsNewInstance, infoAndType.Type!);
14041
BoundObjectOrCollectionValuePlaceholder
? placeholder = node.Placeholder;
14146
BoundObjectOrCollectionValuePlaceholder
placeholder = (
BoundObjectOrCollectionValuePlaceholder
)this.Visit(node.Placeholder);
14200
BoundObjectOrCollectionValuePlaceholder
placeholder = (
BoundObjectOrCollectionValuePlaceholder
)this.Visit(node.Placeholder);
15038
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)
340
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:
2868
private IInstanceReferenceOperation CreateCollectionValuePlaceholderOperation(
BoundObjectOrCollectionValuePlaceholder
placeholder)