5 instantiations of BoundInterpolatedString
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Conversions.cs (1)
189source = new BoundInterpolatedString(
Binder\Binder_InterpolatedString.cs (3)
264=> new BoundInterpolatedString( 385return new BoundInterpolatedString( 446return new BoundInterpolatedString(
Generated\BoundNodes.xml.Generated.cs (1)
7518var result = new BoundInterpolatedString(this.Syntax, interpolationData, parts, constantValueOpt, type, this.HasErrors);
51 references to BoundInterpolatedString
Microsoft.CodeAnalysis.CSharp (49)
Binder\Binder.ValueChecks.cs (4)
4516getParts((BoundInterpolatedString)binary.Right); 4520case BoundInterpolatedString interpolatedString: 4529void getParts(BoundInterpolatedString interpolatedString) 4533if (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) 382static BoundInterpolatedString createInterpolation(BoundUnconvertedInterpolatedString expression, int i, (ImmutableArray<ImmutableArray<BoundExpression>> AppendCalls, TypeSymbol _) arg) 428private BoundInterpolatedString BindUnconvertedInterpolatedStringToHandlerType( 760methodName = BoundInterpolatedString.AppendFormattedMethod; 786methodName = BoundInterpolatedString.AppendLiteralMethod;
Binder\RefSafetyAnalysis.cs (1)
572if (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 (5)
1146public override BoundNode VisitInterpolatedString(BoundInterpolatedString node) 2491var parts = ArrayBuilder<BoundInterpolatedString>.GetInstance(); 2496stringCallback: static (BoundInterpolatedString interpolatedString, (ArrayBuilder<BoundInterpolatedString> parts, AbstractFlowPass<TLocalState, TLocalFunctionState> @this) arg) => 2512foreach (var part in parts)
Generated\BoundNodes.xml.Generated.cs (10)
7514public BoundInterpolatedString Update(InterpolatedStringHandlerData? interpolationData, ImmutableArray<BoundExpression> parts, ConstantValue? constantValueOpt, TypeSymbol? type) 7518var result = new BoundInterpolatedString(this.Syntax, interpolationData, parts, constantValueOpt, type, this.HasErrors); 8907return VisitInterpolatedString((BoundInterpolatedString)node, arg); 9166public virtual R VisitInterpolatedString(BoundInterpolatedString node, A arg) => this.DefaultVisit(node, arg); 9394public virtual BoundNode? VisitInterpolatedString(BoundInterpolatedString node) => this.DefaultVisit(node); 10282public override BoundNode? VisitInterpolatedString(BoundInterpolatedString node) 11587public override BoundNode? VisitInterpolatedString(BoundInterpolatedString node) 14094public override BoundNode? VisitInterpolatedString(BoundInterpolatedString node) 14097BoundInterpolatedString updatedNode; 16238public override TreeDumperNode VisitInterpolatedString(BoundInterpolatedString node, object? arg) => new TreeDumperNode("interpolatedString", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
164static (BoundInterpolatedString interpolatedString, ArrayBuilder<BoundExpression> partsBuilder) =>
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
593if (argument is BoundConversion { ConversionKind: ConversionKind.InterpolatedStringHandler, Operand: BoundInterpolatedString or BoundBinaryOperator } conversion) 666if (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)
213return CreateBoundInterpolatedStringExpressionOperation((BoundInterpolatedString)boundNode); 1472Func<BoundInterpolatedString, int, (CSharpOperationFactory, InterpolatedStringHandlerData), IOperation> createInterpolatedString 1481BoundInterpolatedString boundInterpolatedString, 2143private IInterpolatedStringOperation CreateBoundInterpolatedStringExpressionOperation(BoundInterpolatedString boundInterpolatedString, ImmutableArray<(bool IsLiteral, bool HasAlignment, bool HasFormat)>? positionInfo = null) 2327case BoundInterpolatedString interpolatedString: 2342BoundInterpolatedString.AppendLiteralMethod => OperationKind.InterpolatedStringAppendLiteral, 2343BoundInterpolatedString.AppendFormattedMethod => OperationKind.InterpolatedStringAppendFormatted,
Symbols\ConstantValueUtils.cs (1)
157public override BoundNode VisitInterpolatedString(BoundInterpolatedString node)
Microsoft.CodeAnalysis.Test.Utilities (2)
Compilation\ControlFlowGraphVerifier.cs (2)
972TargetMethod: { Name: BoundInterpolatedString.AppendFormattedMethod or BoundInterpolatedString.AppendLiteralMethod, ContainingType: INamedTypeSymbol containingType }