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