24 instantiations of BoundValuePlaceholder
Microsoft.CodeAnalysis.CSharp (24)
Binder\Binder_Conversions.cs (4)
77
var placeholder2 = new
BoundValuePlaceholder
(source.Syntax, source.Type);
327
new
BoundValuePlaceholder
(source.Syntax, source.Type.GetNullableUnderlyingType()),
356
new
BoundValuePlaceholder
(source.Syntax, source.Type.GetNullableUnderlyingType()),
384
new
BoundValuePlaceholder
(source.Syntax, sourceTypes[i].Type),
Binder\Binder_Deconstruct.cs (2)
309
var operandPlaceholder = new
BoundValuePlaceholder
(syntax, ErrorTypeSymbol.UnknownResultType).MakeCompilerGenerated();
334
var operandPlaceholder = new
BoundValuePlaceholder
(syntax, tupleOrDeconstructedTypes[i]).MakeCompilerGenerated();
Binder\Binder_Operators.cs (12)
63
var placeholder = new
BoundValuePlaceholder
(right.Syntax, left.HasDynamicType() ? left.Type : right.Type).MakeCompilerGenerated();
243
var leftPlaceholder = new
BoundValuePlaceholder
(left.Syntax, leftType).MakeCompilerGenerated();
1074
var operandPlaceholder = new
BoundValuePlaceholder
(left.Syntax, left.Type).MakeCompilerGenerated();
2335
var resultPlaceholder = new
BoundValuePlaceholder
(node, signature.ReturnType).MakeCompilerGenerated();
2357
var operandPlaceholder = new
BoundValuePlaceholder
(operand.Syntax, operand.Type).MakeCompilerGenerated();
3783
operandPlaceholder = new
BoundValuePlaceholder
(operand.Syntax, operand.Type).MakeCompilerGenerated();
3830
operandPlaceholder = new
BoundValuePlaceholder
(operand.Syntax, operand.Type).MakeCompilerGenerated();
4048
var leftPlaceholder = new
BoundValuePlaceholder
(leftOperand.Syntax, optLeftType).MakeCompilerGenerated();
4070
var leftPlaceholder = new
BoundValuePlaceholder
(leftOperand.Syntax, optLeftType0).MakeCompilerGenerated();
4089
var leftPlaceholder = new
BoundValuePlaceholder
(leftOperand.Syntax, optLeftType).MakeCompilerGenerated();
4139
var leftPlaceholder = new
BoundValuePlaceholder
(leftOperand.Syntax, optLeftType0).MakeCompilerGenerated();
4153
var leftPlaceholder = new
BoundValuePlaceholder
(leftOperand.Syntax, optLeftType).MakeCompilerGenerated();
Binder\Binder_Statements.cs (1)
1381
elementPlaceholder = new
BoundValuePlaceholder
(initializerSyntax, pointerType).MakeCompilerGenerated();
Binder\ForEachLoopBinder.cs (1)
853
BoundExpression span = new
BoundValuePlaceholder
(collectionExpr.Syntax, spanType).MakeCompilerGenerated();
Binder\Semantics\Conversions\Conversions.cs (1)
239
new
BoundValuePlaceholder
(element.Syntax, enumeratorInfo.ElementType),
Generated\BoundNodes.xml.Generated.cs (1)
489
var result = new
BoundValuePlaceholder
(this.Syntax, type, this.HasErrors);
Lowering\LocalRewriter\LocalRewriter_NullCoalescingAssignmentOperator.cs (1)
45
var leftPlaceholder = new
BoundValuePlaceholder
(lhsRead.Syntax, lhsRead.Type);
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (1)
196
var placeholder = new
BoundValuePlaceholder
(result.Syntax, result.Type);
119 references to BoundValuePlaceholder
Microsoft.CodeAnalysis.CSharp (119)
Binder\Binder_Conversions.cs (2)
70
if (source is
BoundValuePlaceholder
placeholder1)
77
var
placeholder2 = new BoundValuePlaceholder(source.Syntax, source.Type);
Binder\Binder_Deconstruct.cs (3)
295
var nestedConversions = ArrayBuilder<(
BoundValuePlaceholder
?, BoundExpression?)>.GetInstance(count);
309
var
operandPlaceholder = new BoundValuePlaceholder(syntax, ErrorTypeSymbol.UnknownResultType).MakeCompilerGenerated();
334
var
operandPlaceholder = new BoundValuePlaceholder(syntax, tupleOrDeconstructedTypes[i]).MakeCompilerGenerated();
Binder\Binder_Expressions.cs (1)
6531
var
addElementPlaceholder = new BoundValuePlaceholder(syntax, enumeratorInfo.ElementType);
Binder\Binder_Operators.cs (12)
63
var
placeholder = new BoundValuePlaceholder(right.Syntax, left.HasDynamicType() ? left.Type : right.Type).MakeCompilerGenerated();
199
var
finalPlaceholder = new BoundValuePlaceholder(node, bestSignature.ReturnType);
243
var
leftPlaceholder = new BoundValuePlaceholder(left.Syntax, leftType).MakeCompilerGenerated();
1074
var
operandPlaceholder = new BoundValuePlaceholder(left.Syntax, left.Type).MakeCompilerGenerated();
2335
var
resultPlaceholder = new BoundValuePlaceholder(node, signature.ReturnType).MakeCompilerGenerated();
2357
var
operandPlaceholder = new BoundValuePlaceholder(operand.Syntax, operand.Type).MakeCompilerGenerated();
3774
BoundValuePlaceholder
operandPlaceholder;
4048
var
leftPlaceholder = new BoundValuePlaceholder(leftOperand.Syntax, optLeftType).MakeCompilerGenerated();
4070
var
leftPlaceholder = new BoundValuePlaceholder(leftOperand.Syntax, optLeftType0).MakeCompilerGenerated();
4089
var
leftPlaceholder = new BoundValuePlaceholder(leftOperand.Syntax, optLeftType).MakeCompilerGenerated();
4139
var
leftPlaceholder = new BoundValuePlaceholder(leftOperand.Syntax, optLeftType0).MakeCompilerGenerated();
4153
var
leftPlaceholder = new BoundValuePlaceholder(leftOperand.Syntax, optLeftType).MakeCompilerGenerated();
Binder\Binder_Statements.cs (1)
1370
BoundValuePlaceholder
elementPlaceholder;
Binder\Binder_TupleOperators.cs (2)
107
out BoundExpression conversionIntoBoolOperator, out
BoundValuePlaceholder
conversionIntoBoolOperatorPlaceholder,
126
out BoundExpression conversionForBool, out
BoundValuePlaceholder
conversionForBoolPlaceholder, out UnaryOperatorSignature boolOperator)
Binder\ForEachEnumeratorInfo.cs (3)
46
public readonly
BoundValuePlaceholder
? CurrentPlaceholder;
63
BoundValuePlaceholder
? currentPlaceholder,
113
public
BoundValuePlaceholder
? CurrentPlaceholder;
Binder\ForEachLoopBinder.cs (1)
477
var
elementPlaceholder = new BoundValuePlaceholder(_syntax, inferredType.Type).MakeCompilerGenerated();
Binder\Semantics\Conversions\Conversion.cs (4)
96
internal DeconstructionUncommonData(DeconstructMethodInfo deconstructMethodInfoOpt, ImmutableArray<(
BoundValuePlaceholder
? placeholder, BoundExpression? conversion)> deconstructConversionInfo)
104
internal readonly ImmutableArray<(
BoundValuePlaceholder
? placeholder, BoundExpression? conversion)> DeconstructConversionInfo;
180
internal Conversion(ConversionKind kind, DeconstructMethodInfo deconstructMethodInfo, ImmutableArray<(
BoundValuePlaceholder
? placeholder, BoundExpression? conversion)> deconstructConversionInfo)
538
internal ImmutableArray<(
BoundValuePlaceholder
? placeholder, BoundExpression? conversion)> DeconstructConversionInfo
BoundTree\BoundNode.cs (2)
443
public static Conversion GetConversion(BoundExpression? conversion,
BoundValuePlaceholder
? placeholder)
476
case
BoundValuePlaceholder
valuePlaceholder when (object)valuePlaceholder == placeholder:
BoundTree\Constructors.cs (8)
717
BoundValuePlaceholder
? leftPlaceholder,
719
BoundValuePlaceholder
? finalPlaceholder,
731
BoundValuePlaceholder
? leftPlaceholder,
733
BoundValuePlaceholder
? finalPlaceholder,
774
BoundValuePlaceholder
? operandPlaceholder,
776
BoundValuePlaceholder
? resultPlaceholder,
785
public BoundIncrementOperator Update(UnaryOperatorKind operatorKind, BoundExpression operand, MethodSymbol? methodOpt, TypeSymbol? constrainedToTypeOpt,
BoundValuePlaceholder
? operandPlaceholder, BoundExpression? operandConversion,
BoundValuePlaceholder
? resultPlaceholder, BoundExpression? resultConversion, LookupResultKind resultKind, TypeSymbol type)
BoundTree\TupleBinaryOperatorInfo.cs (2)
51
internal readonly
BoundValuePlaceholder
? ConversionForBoolPlaceholder;
62
BoundValuePlaceholder
? conversionForBoolPlaceholder,
FlowAnalysis\NullableWalker.cs (2)
10246
private void VisitTupleDeconstructionArguments(ArrayBuilder<DeconstructionVariable> variables, ImmutableArray<(
BoundValuePlaceholder
? placeholder, BoundExpression? conversion)> deconstructConversionInfo, BoundExpression right, TypeWithState? rightResultOpt)
10745
public override BoundNode? VisitValuePlaceholder(
BoundValuePlaceholder
node)
Generated\BoundNodes.xml.Generated.cs (59)
485
public
BoundValuePlaceholder
Update(TypeSymbol? type)
489
var
result = new BoundValuePlaceholder(this.Syntax, type, this.HasErrors);
1224
public BoundIncrementOperator(SyntaxNode syntax, UnaryOperatorKind operatorKind, BoundExpression operand, MethodSymbol? methodOpt, TypeSymbol? constrainedToTypeOpt,
BoundValuePlaceholder
? operandPlaceholder, BoundExpression? operandConversion,
BoundValuePlaceholder
? resultPlaceholder, BoundExpression? resultConversion, LookupResultKind resultKind, ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt, TypeSymbol type, bool hasErrors = false)
1248
public
BoundValuePlaceholder
? OperandPlaceholder { get; }
1250
public
BoundValuePlaceholder
? ResultPlaceholder { get; }
1258
public BoundIncrementOperator Update(UnaryOperatorKind operatorKind, BoundExpression operand, MethodSymbol? methodOpt, TypeSymbol? constrainedToTypeOpt,
BoundValuePlaceholder
? operandPlaceholder, BoundExpression? operandConversion,
BoundValuePlaceholder
? resultPlaceholder, BoundExpression? resultConversion, LookupResultKind resultKind, ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt, TypeSymbol type)
1777
public BoundCompoundAssignmentOperator(SyntaxNode syntax, BinaryOperatorSignature @operator, BoundExpression left, BoundExpression right,
BoundValuePlaceholder
? leftPlaceholder, BoundExpression? leftConversion,
BoundValuePlaceholder
? finalPlaceholder, BoundExpression? finalConversion, LookupResultKind resultKind, ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt, TypeSymbol type, bool hasErrors = false)
1800
public
BoundValuePlaceholder
? LeftPlaceholder { get; }
1802
public
BoundValuePlaceholder
? FinalPlaceholder { get; }
1810
public BoundCompoundAssignmentOperator Update(BinaryOperatorSignature @operator, BoundExpression left, BoundExpression right,
BoundValuePlaceholder
? leftPlaceholder, BoundExpression? leftConversion,
BoundValuePlaceholder
? finalPlaceholder, BoundExpression? finalConversion, LookupResultKind resultKind, ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt, TypeSymbol type)
1893
public BoundNullCoalescingOperator(SyntaxNode syntax, BoundExpression leftOperand, BoundExpression rightOperand,
BoundValuePlaceholder
? leftPlaceholder, BoundExpression? leftConversion, BoundNullCoalescingOperatorResultKind operatorResultKind, bool @checked, TypeSymbol type, bool hasErrors = false)
1912
public
BoundValuePlaceholder
? LeftPlaceholder { get; }
1920
public BoundNullCoalescingOperator Update(BoundExpression leftOperand, BoundExpression rightOperand,
BoundValuePlaceholder
? leftPlaceholder, BoundExpression? leftConversion, BoundNullCoalescingOperatorResultKind operatorResultKind, bool @checked, TypeSymbol type)
2882
public BoundAsOperator(SyntaxNode syntax, BoundExpression operand, BoundTypeExpression targetType,
BoundValuePlaceholder
? operandPlaceholder, BoundExpression? operandConversion, TypeSymbol type, bool hasErrors = false)
2899
public
BoundValuePlaceholder
? OperandPlaceholder { get; }
2905
public BoundAsOperator Update(BoundExpression operand, BoundTypeExpression targetType,
BoundValuePlaceholder
? operandPlaceholder, BoundExpression? operandConversion, TypeSymbol type)
3094
public BoundFixedLocalCollectionInitializer(SyntaxNode syntax, TypeSymbol elementPointerType,
BoundValuePlaceholder
? elementPointerPlaceholder, BoundExpression? elementPointerConversion, BoundExpression expression, MethodSymbol? getPinnableOpt, TypeSymbol type, bool hasErrors = false)
3111
public
BoundValuePlaceholder
? ElementPointerPlaceholder { get; }
3119
public BoundFixedLocalCollectionInitializer Update(TypeSymbol elementPointerType,
BoundValuePlaceholder
? elementPointerPlaceholder, BoundExpression? elementPointerConversion, BoundExpression expression, MethodSymbol? getPinnableOpt, TypeSymbol type)
4036
public BoundForEachStatement(SyntaxNode syntax, ForEachEnumeratorInfo? enumeratorInfoOpt,
BoundValuePlaceholder
? elementPlaceholder, BoundExpression? elementConversion, BoundTypeExpression iterationVariableType, ImmutableArray<LocalSymbol> iterationVariables, BoundExpression? iterationErrorExpressionOpt, BoundExpression expression, BoundForEachDeconstructStep? deconstructionOpt, BoundAwaitableInfo? awaitOpt, BoundStatement body, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel, bool hasErrors = false)
4060
public
BoundValuePlaceholder
? ElementPlaceholder { get; }
4073
public BoundForEachStatement Update(ForEachEnumeratorInfo? enumeratorInfoOpt,
BoundValuePlaceholder
? elementPlaceholder, BoundExpression? elementConversion, BoundTypeExpression iterationVariableType, ImmutableArray<LocalSymbol> iterationVariables, BoundExpression? iterationErrorExpressionOpt, BoundExpression expression, BoundForEachDeconstructStep? deconstructionOpt, BoundAwaitableInfo? awaitOpt, BoundStatement body, GeneratedLabelSymbol breakLabel, GeneratedLabelSymbol continueLabel)
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)
6456
public
BoundValuePlaceholder
? CollectionBuilderInvocationPlaceholder { 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)
6506
public BoundCollectionExpressionSpreadElement(SyntaxNode syntax, BoundExpression expression, BoundCollectionExpressionSpreadExpressionPlaceholder? expressionPlaceholder, BoundExpression? conversion, ForEachEnumeratorInfo? enumeratorInfoOpt, BoundExpression? lengthOrCount,
BoundValuePlaceholder
? elementPlaceholder, BoundStatement? iteratorBody, bool hasErrors = false)
6526
public
BoundValuePlaceholder
? ElementPlaceholder { get; }
6532
public BoundCollectionExpressionSpreadElement Update(BoundExpression expression, BoundCollectionExpressionSpreadExpressionPlaceholder? expressionPlaceholder, BoundExpression? conversion, ForEachEnumeratorInfo? enumeratorInfoOpt, BoundExpression? lengthOrCount,
BoundValuePlaceholder
? elementPlaceholder, BoundStatement? iteratorBody)
8841
return VisitValuePlaceholder((
BoundValuePlaceholder
)node, arg);
9308
public virtual R VisitValuePlaceholder(
BoundValuePlaceholder
node, A arg) => this.DefaultVisit(node, arg);
9544
public virtual BoundNode? VisitValuePlaceholder(
BoundValuePlaceholder
node) => this.DefaultVisit(node);
9796
public override BoundNode? VisitValuePlaceholder(
BoundValuePlaceholder
node) => null;
10819
public override BoundNode? VisitValuePlaceholder(
BoundValuePlaceholder
node)
10939
BoundValuePlaceholder
? operandPlaceholder = node.OperandPlaceholder;
10941
BoundValuePlaceholder
? resultPlaceholder = node.ResultPlaceholder;
11042
BoundValuePlaceholder
? leftPlaceholder = node.LeftPlaceholder;
11044
BoundValuePlaceholder
? finalPlaceholder = node.FinalPlaceholder;
11067
BoundValuePlaceholder
? leftPlaceholder = node.LeftPlaceholder;
11227
BoundValuePlaceholder
? operandPlaceholder = node.OperandPlaceholder;
11263
BoundValuePlaceholder
? elementPointerPlaceholder = node.ElementPointerPlaceholder;
11389
BoundValuePlaceholder
? elementPlaceholder = node.ElementPlaceholder;
11781
BoundValuePlaceholder
? collectionBuilderInvocationPlaceholder = node.CollectionBuilderInvocationPlaceholder;
11799
BoundValuePlaceholder
? elementPlaceholder = node.ElementPlaceholder;
12252
public override BoundNode? VisitValuePlaceholder(
BoundValuePlaceholder
node)
12259
BoundValuePlaceholder
updatedNode = node.Update(infoAndType.Type);
12533
BoundValuePlaceholder
? operandPlaceholder = node.OperandPlaceholder;
12535
BoundValuePlaceholder
? resultPlaceholder = node.ResultPlaceholder;
12768
BoundValuePlaceholder
? leftPlaceholder = node.LeftPlaceholder;
12770
BoundValuePlaceholder
? finalPlaceholder = node.FinalPlaceholder;
12826
BoundValuePlaceholder
? leftPlaceholder = node.LeftPlaceholder;
13232
BoundValuePlaceholder
? operandPlaceholder = node.OperandPlaceholder;
13334
BoundValuePlaceholder
? elementPointerPlaceholder = node.ElementPointerPlaceholder;
13432
BoundValuePlaceholder
? elementPlaceholder = node.ElementPlaceholder;
14045
BoundValuePlaceholder
? collectionBuilderInvocationPlaceholder = node.CollectionBuilderInvocationPlaceholder;
14994
public override TreeDumperNode VisitValuePlaceholder(
BoundValuePlaceholder
node, object? arg) => new TreeDumperNode("valuePlaceholder", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter.cs (2)
465
public override BoundNode VisitValuePlaceholder(
BoundValuePlaceholder
node)
1190
public override BoundNode? VisitValuePlaceholder(
BoundValuePlaceholder
node)
Lowering\LocalRewriter\LocalRewriter_AsOperator.cs (1)
37
BoundValuePlaceholder
? operandPlaceholder,
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (2)
494
var
invocationPlaceholder = node.CollectionBuilderInvocationPlaceholder;
1285
var
elementPlaceholder = node.ElementPlaceholder;
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (2)
222
ImmutableArray<(
BoundValuePlaceholder
?, BoundExpression?)> deconstructConversionInfo = conversion.DeconstructConversionInfo;
370
private BoundExpression EvaluateConversionToTemp(BoundExpression expression,
BoundValuePlaceholder
placeholder, BoundExpression conversion,
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (4)
139
BoundValuePlaceholder
? elementPlaceholder,
601
BoundValuePlaceholder
? elementPlaceholder,
897
BoundValuePlaceholder
? elementPlaceholder,
1046
BoundValuePlaceholder
? elementPlaceholder,
Lowering\LocalRewriter\LocalRewriter_NullCoalescingAssignmentOperator.cs (1)
45
var
leftPlaceholder = new BoundValuePlaceholder(lhsRead.Syntax, lhsRead.Type);
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (2)
26
BoundValuePlaceholder
? leftPlaceholder,
235
private BoundExpression GetConvertedLeftForNullCoalescingOperator(BoundExpression rewrittenLeft,
BoundValuePlaceholder
? leftPlaceholder, BoundExpression? leftConversion, TypeSymbol rewrittenResultType)
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (1)
196
var
placeholder = new BoundValuePlaceholder(result.Syntax, result.Type);
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (2)
595
private BoundExpression ApplyConversionIfNotIdentity(BoundExpression? conversion,
BoundValuePlaceholder
? placeholder, BoundExpression replacement)
622
private BoundExpression ApplyConversion(BoundExpression conversion,
BoundValuePlaceholder
placeholder, BoundExpression replacement)