5 instantiations of BoundInterpolatedString
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Conversions.cs (1)
191source = new BoundInterpolatedString(
Binder\Binder_InterpolatedString.cs (3)
264=> new BoundInterpolatedString( 393return new BoundInterpolatedString( 454return new BoundInterpolatedString(
Generated\BoundNodes.xml.Generated.cs (1)
7834var result = new BoundInterpolatedString(this.Syntax, interpolationData, parts, constantValueOpt, type, this.HasErrors);
47 references to BoundInterpolatedString
Microsoft.CodeAnalysis.CSharp (47)
Binder\Binder.ValueChecks.cs (3)
5615case BoundInterpolatedString interpolatedString: 5624void getParts(BoundInterpolatedString interpolatedString) 5628if (part is not BoundCall { Method.Name: BoundInterpolatedString.AppendFormattedMethod } call)
Binder\Binder_InterpolatedString.cs (8)
217private BoundInterpolatedString BindUnconvertedInterpolatedStringToString(BoundUnconvertedInterpolatedString unconvertedInterpolatedString, BindingDiagnosticBag diagnostics) 253if (tryBindAsHandlerType(out var result)) 263BoundInterpolatedString constructWithData(ImmutableArray<BoundExpression> parts, InterpolatedStringHandlerData? data) 272bool tryBindAsHandlerType([NotNullWhen(true)] out BoundInterpolatedString? result) 390static BoundInterpolatedString createInterpolation(BoundUnconvertedInterpolatedString expression, int i, (ImmutableArray<ImmutableArray<BoundExpression>> AppendCalls, TypeSymbol _) arg) 436private BoundInterpolatedString BindUnconvertedInterpolatedStringToHandlerType( 790methodName = BoundInterpolatedString.AppendFormattedMethod; 816methodName = BoundInterpolatedString.AppendLiteralMethod;
Binder\RefSafetyAnalysis.cs (1)
649if (arg is BoundConversion { ConversionKind: ConversionKind.InterpolatedStringHandler, Operand: BoundInterpolatedString or BoundBinaryOperator } conversion)
BoundTree\BoundNodeExtensions.cs (5)
156Debug.Assert(typeof(TInterpolatedStringType) == typeof(BoundInterpolatedString) || binary.IsUnconvertedInterpolatedStringAddition); 242Debug.Assert(typeof(TInterpolatedStringType) == typeof(BoundInterpolatedString) || binary.IsUnconvertedInterpolatedStringAddition); 253BoundInterpolatedString { InterpolationData: { } d } => d, 254BoundBinaryOperator or BoundInterpolatedString when !throwOnMissing => default, 255BoundBinaryOperator or BoundInterpolatedString => throw ExceptionUtilities.Unreachable(),
FlowAnalysis\AbstractFlowPass.cs (4)
1154public override BoundNode VisitInterpolatedString(BoundInterpolatedString node) 2593var parts = ArrayBuilder<BoundInterpolatedString>.GetInstance(); 2598stringCallback: static (BoundInterpolatedString interpolatedString, (ArrayBuilder<BoundInterpolatedString> parts, AbstractFlowPass<TLocalState, TLocalFunctionState> @this) arg) =>
Generated\BoundNodes.xml.Generated.cs (10)
7830public BoundInterpolatedString Update(InterpolatedStringHandlerData? interpolationData, ImmutableArray<BoundExpression> parts, ConstantValue? constantValueOpt, TypeSymbol? type) 7834var result = new BoundInterpolatedString(this.Syntax, interpolationData, parts, constantValueOpt, type, this.HasErrors); 9239return VisitInterpolatedString((BoundInterpolatedString)node, arg); 9506public virtual R VisitInterpolatedString(BoundInterpolatedString node, A arg) => this.DefaultVisit(node, arg); 9742public virtual BoundNode? VisitInterpolatedString(BoundInterpolatedString node) => this.DefaultVisit(node); 10659public override BoundNode? VisitInterpolatedString(BoundInterpolatedString node) 12019public override BoundNode? VisitInterpolatedString(BoundInterpolatedString node) 14629public override BoundNode? VisitInterpolatedString(BoundInterpolatedString node) 14632BoundInterpolatedString updatedNode; 16855public override TreeDumperNode VisitInterpolatedString(BoundInterpolatedString node, object? arg) => new TreeDumperNode("interpolatedString", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
166static (BoundInterpolatedString interpolatedString, ArrayBuilder<BoundExpression> partsBuilder) =>
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
836if (argument is BoundConversion { ConversionKind: ConversionKind.InterpolatedStringHandler, Operand: BoundInterpolatedString or BoundBinaryOperator } conversion) 909if (argument is BoundConversion { ConversionKind: ConversionKind.InterpolatedStringHandler, Operand: BoundInterpolatedString or BoundBinaryOperator } conversion)
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
29BoundInterpolatedString { InterpolationData: { } d, Parts: { } p } => (d, p),
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (4)
21MakeInterpolatedStringFormat((BoundInterpolatedString)conversion.Operand, out format, out expressions); 187private bool CanLowerToStringConcatenation(BoundInterpolatedString node) 208private void MakeInterpolatedStringFormat(BoundInterpolatedString node, out BoundExpression format, out ArrayBuilder<BoundExpression> expressions) 277public override BoundNode VisitInterpolatedString(BoundInterpolatedString node)
Operations\CSharpOperationFactory.cs (7)
217return CreateBoundInterpolatedStringExpressionOperation((BoundInterpolatedString)boundNode); 1539Func<BoundInterpolatedString, int, (CSharpOperationFactory, InterpolatedStringHandlerData), IOperation> createInterpolatedString 1548BoundInterpolatedString boundInterpolatedString, 2225private IInterpolatedStringOperation CreateBoundInterpolatedStringExpressionOperation(BoundInterpolatedString boundInterpolatedString, ImmutableArray<(bool IsLiteral, bool HasAlignment, bool HasFormat)>? positionInfo = null) 2409case BoundInterpolatedString interpolatedString: 2424BoundInterpolatedString.AppendLiteralMethod => OperationKind.InterpolatedStringAppendLiteral, 2425BoundInterpolatedString.AppendFormattedMethod => OperationKind.InterpolatedStringAppendFormatted,
Symbols\ConstantValueUtils.cs (1)
156public override BoundNode VisitInterpolatedString(BoundInterpolatedString node)