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();
2340
var resultPlaceholder = new
BoundValuePlaceholder
(node, signature.ReturnType).MakeCompilerGenerated();
2362
var operandPlaceholder = new
BoundValuePlaceholder
(operand.Syntax, operand.Type).MakeCompilerGenerated();
3788
operandPlaceholder = new
BoundValuePlaceholder
(operand.Syntax, operand.Type).MakeCompilerGenerated();
3835
operandPlaceholder = new
BoundValuePlaceholder
(operand.Syntax, operand.Type).MakeCompilerGenerated();
4053
var leftPlaceholder = new
BoundValuePlaceholder
(leftOperand.Syntax, optLeftType).MakeCompilerGenerated();
4075
var leftPlaceholder = new
BoundValuePlaceholder
(leftOperand.Syntax, optLeftType0).MakeCompilerGenerated();
4094
var leftPlaceholder = new
BoundValuePlaceholder
(leftOperand.Syntax, optLeftType).MakeCompilerGenerated();
4144
var leftPlaceholder = new
BoundValuePlaceholder
(leftOperand.Syntax, optLeftType0).MakeCompilerGenerated();
4158
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)
490
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)
6534
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();
2340
var
resultPlaceholder = new BoundValuePlaceholder(node, signature.ReturnType).MakeCompilerGenerated();
2362
var
operandPlaceholder = new BoundValuePlaceholder(operand.Syntax, operand.Type).MakeCompilerGenerated();
3779
BoundValuePlaceholder
operandPlaceholder;
4053
var
leftPlaceholder = new BoundValuePlaceholder(leftOperand.Syntax, optLeftType).MakeCompilerGenerated();
4075
var
leftPlaceholder = new BoundValuePlaceholder(leftOperand.Syntax, optLeftType0).MakeCompilerGenerated();
4094
var
leftPlaceholder = new BoundValuePlaceholder(leftOperand.Syntax, optLeftType).MakeCompilerGenerated();
4144
var
leftPlaceholder = new BoundValuePlaceholder(leftOperand.Syntax, optLeftType0).MakeCompilerGenerated();
4158
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)
10304
private void VisitTupleDeconstructionArguments(ArrayBuilder<DeconstructionVariable> variables, ImmutableArray<(
BoundValuePlaceholder
? placeholder, BoundExpression? conversion)> deconstructConversionInfo, BoundExpression right, TypeWithState? rightResultOpt)
10803
public override BoundNode? VisitValuePlaceholder(
BoundValuePlaceholder
node)
Generated\BoundNodes.xml.Generated.cs (59)
486
public
BoundValuePlaceholder
Update(TypeSymbol? type)
490
var
result = new BoundValuePlaceholder(this.Syntax, type, this.HasErrors);
1225
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)
1249
public
BoundValuePlaceholder
? OperandPlaceholder { get; }
1251
public
BoundValuePlaceholder
? ResultPlaceholder { get; }
1259
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)
1778
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)
1801
public
BoundValuePlaceholder
? LeftPlaceholder { get; }
1803
public
BoundValuePlaceholder
? FinalPlaceholder { get; }
1811
public BoundCompoundAssignmentOperator Update(BinaryOperatorSignature @operator, BoundExpression left, BoundExpression right,
BoundValuePlaceholder
? leftPlaceholder, BoundExpression? leftConversion,
BoundValuePlaceholder
? finalPlaceholder, BoundExpression? finalConversion, LookupResultKind resultKind, ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt, TypeSymbol type)
1894
public BoundNullCoalescingOperator(SyntaxNode syntax, BoundExpression leftOperand, BoundExpression rightOperand,
BoundValuePlaceholder
? leftPlaceholder, BoundExpression? leftConversion, BoundNullCoalescingOperatorResultKind operatorResultKind, bool @checked, TypeSymbol type, bool hasErrors = false)
1913
public
BoundValuePlaceholder
? LeftPlaceholder { get; }
1921
public BoundNullCoalescingOperator Update(BoundExpression leftOperand, BoundExpression rightOperand,
BoundValuePlaceholder
? leftPlaceholder, BoundExpression? leftConversion, BoundNullCoalescingOperatorResultKind operatorResultKind, bool @checked, TypeSymbol type)
2883
public BoundAsOperator(SyntaxNode syntax, BoundExpression operand, BoundTypeExpression targetType,
BoundValuePlaceholder
? operandPlaceholder, BoundExpression? operandConversion, TypeSymbol type, bool hasErrors = false)
2900
public
BoundValuePlaceholder
? OperandPlaceholder { get; }
2906
public BoundAsOperator Update(BoundExpression operand, BoundTypeExpression targetType,
BoundValuePlaceholder
? operandPlaceholder, BoundExpression? operandConversion, TypeSymbol type)
3095
public BoundFixedLocalCollectionInitializer(SyntaxNode syntax, TypeSymbol elementPointerType,
BoundValuePlaceholder
? elementPointerPlaceholder, BoundExpression? elementPointerConversion, BoundExpression expression, MethodSymbol? getPinnableOpt, TypeSymbol type, bool hasErrors = false)
3112
public
BoundValuePlaceholder
? ElementPointerPlaceholder { get; }
3120
public BoundFixedLocalCollectionInitializer Update(TypeSymbol elementPointerType,
BoundValuePlaceholder
? elementPointerPlaceholder, BoundExpression? elementPointerConversion, BoundExpression expression, MethodSymbol? getPinnableOpt, TypeSymbol type)
4037
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)
4061
public
BoundValuePlaceholder
? ElementPlaceholder { get; }
4074
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)
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)
6457
public
BoundValuePlaceholder
? CollectionBuilderInvocationPlaceholder { 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)
6507
public BoundCollectionExpressionSpreadElement(SyntaxNode syntax, BoundExpression expression, BoundCollectionExpressionSpreadExpressionPlaceholder? expressionPlaceholder, BoundExpression? conversion, ForEachEnumeratorInfo? enumeratorInfoOpt, BoundExpression? lengthOrCount,
BoundValuePlaceholder
? elementPlaceholder, BoundStatement? iteratorBody, bool hasErrors = false)
6527
public
BoundValuePlaceholder
? ElementPlaceholder { get; }
6533
public BoundCollectionExpressionSpreadElement Update(BoundExpression expression, BoundCollectionExpressionSpreadExpressionPlaceholder? expressionPlaceholder, BoundExpression? conversion, ForEachEnumeratorInfo? enumeratorInfoOpt, BoundExpression? lengthOrCount,
BoundValuePlaceholder
? elementPlaceholder, BoundStatement? iteratorBody)
8878
return VisitValuePlaceholder((
BoundValuePlaceholder
)node, arg);
9345
public virtual R VisitValuePlaceholder(
BoundValuePlaceholder
node, A arg) => this.DefaultVisit(node, arg);
9581
public virtual BoundNode? VisitValuePlaceholder(
BoundValuePlaceholder
node) => this.DefaultVisit(node);
9833
public override BoundNode? VisitValuePlaceholder(
BoundValuePlaceholder
node) => null;
10856
public override BoundNode? VisitValuePlaceholder(
BoundValuePlaceholder
node)
10976
BoundValuePlaceholder
? operandPlaceholder = node.OperandPlaceholder;
10978
BoundValuePlaceholder
? resultPlaceholder = node.ResultPlaceholder;
11079
BoundValuePlaceholder
? leftPlaceholder = node.LeftPlaceholder;
11081
BoundValuePlaceholder
? finalPlaceholder = node.FinalPlaceholder;
11104
BoundValuePlaceholder
? leftPlaceholder = node.LeftPlaceholder;
11264
BoundValuePlaceholder
? operandPlaceholder = node.OperandPlaceholder;
11300
BoundValuePlaceholder
? elementPointerPlaceholder = node.ElementPointerPlaceholder;
11426
BoundValuePlaceholder
? elementPlaceholder = node.ElementPlaceholder;
11818
BoundValuePlaceholder
? collectionBuilderInvocationPlaceholder = node.CollectionBuilderInvocationPlaceholder;
11836
BoundValuePlaceholder
? elementPlaceholder = node.ElementPlaceholder;
12289
public override BoundNode? VisitValuePlaceholder(
BoundValuePlaceholder
node)
12296
BoundValuePlaceholder
updatedNode = node.Update(infoAndType.Type);
12570
BoundValuePlaceholder
? operandPlaceholder = node.OperandPlaceholder;
12572
BoundValuePlaceholder
? resultPlaceholder = node.ResultPlaceholder;
12805
BoundValuePlaceholder
? leftPlaceholder = node.LeftPlaceholder;
12807
BoundValuePlaceholder
? finalPlaceholder = node.FinalPlaceholder;
12863
BoundValuePlaceholder
? leftPlaceholder = node.LeftPlaceholder;
13269
BoundValuePlaceholder
? operandPlaceholder = node.OperandPlaceholder;
13371
BoundValuePlaceholder
? elementPointerPlaceholder = node.ElementPointerPlaceholder;
13469
BoundValuePlaceholder
? elementPlaceholder = node.ElementPlaceholder;
14082
BoundValuePlaceholder
? collectionBuilderInvocationPlaceholder = node.CollectionBuilderInvocationPlaceholder;
15031
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)
509
var
invocationPlaceholder = node.CollectionBuilderInvocationPlaceholder;
1330
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)