6 instantiations of BoundInterpolatedString
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder_Conversions.cs (1)
717return new BoundInterpolatedString(
Binder\Binder_InterpolatedString.cs (4)
267=> new BoundInterpolatedString( 362return new BoundInterpolatedString( 531return new BoundInterpolatedString( 592return new BoundInterpolatedString(
Generated\BoundNodes.xml.Generated.cs (1)
7836var result = new BoundInterpolatedString(this.Syntax, interpolationData, parts, constantValueOpt, type, this.HasErrors);
52 references to BoundInterpolatedString
Microsoft.CodeAnalysis.CSharp (50)
Binder\Binder.ValueChecks.cs (4)
5809case BoundInterpolatedString interpolatedString: 5817SafeContext getPartsScope(BoundInterpolatedString interpolatedString, SafeContext localScopeDepth) 5853case BoundInterpolatedString interpolatedString: 5861bool checkParts(BoundInterpolatedString interpolatedString, SafeContext escapeFrom, SafeContext escapeTo, BindingDiagnosticBag diagnostics)
Binder\Binder_InterpolatedString.cs (9)
217private BoundInterpolatedString BindUnconvertedInterpolatedStringToString(BoundUnconvertedInterpolatedString unconvertedInterpolatedString, BindingDiagnosticBag diagnostics) 250tryBindAsHandlerType(out var result)) 266BoundInterpolatedString constructWithoutData(ImmutableArray<BoundExpression> parts) 275bool tryBindAsHandlerType([NotNullWhen(true)] out BoundInterpolatedString? result) 331private BoundInterpolatedString BindUnconvertedInterpolatedExpressionToFactory( 528static BoundInterpolatedString createInterpolation(BoundUnconvertedInterpolatedString expression, int i, (ImmutableArray<ImmutableArray<BoundExpression>> AppendCalls, TypeSymbol _) arg) 574private BoundInterpolatedString BindUnconvertedInterpolatedStringToHandlerType( 928methodName = BoundInterpolatedString.AppendFormattedMethod; 954methodName = BoundInterpolatedString.AppendLiteralMethod;
Binder\RefSafetyAnalysis.cs (1)
728if (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: { BuilderType: not null } d } => d, 254BoundBinaryOperator or BoundInterpolatedString when !throwOnMissing => default, 255BoundBinaryOperator or BoundInterpolatedString => throw ExceptionUtilities.Unreachable(),
FlowAnalysis\AbstractFlowPass.cs (5)
1201public override BoundNode VisitInterpolatedString(BoundInterpolatedString node) 2715var parts = ArrayBuilder<BoundInterpolatedString>.GetInstance(); 2720stringCallback: static (BoundInterpolatedString interpolatedString, (ArrayBuilder<BoundInterpolatedString> parts, AbstractFlowPass<TLocalState, TLocalFunctionState> @this) arg) => 2736foreach (var part in parts)
Generated\BoundNodes.xml.Generated.cs (10)
7832public BoundInterpolatedString Update(InterpolatedStringHandlerData? interpolationData, ImmutableArray<BoundExpression> parts, ConstantValue? constantValueOpt, TypeSymbol? type) 7836var result = new BoundInterpolatedString(this.Syntax, interpolationData, parts, constantValueOpt, type, this.HasErrors); 9277return VisitInterpolatedString((BoundInterpolatedString)node, arg); 9544public virtual R VisitInterpolatedString(BoundInterpolatedString node, A arg) => this.DefaultVisit(node, arg); 9780public virtual BoundNode? VisitInterpolatedString(BoundInterpolatedString node) => this.DefaultVisit(node); 10699public override BoundNode? VisitInterpolatedString(BoundInterpolatedString node) 12195public override BoundNode? VisitInterpolatedString(BoundInterpolatedString node) 14806public override BoundNode? VisitInterpolatedString(BoundInterpolatedString node) 14809BoundInterpolatedString updatedNode; 17036public override TreeDumperNode VisitInterpolatedString(BoundInterpolatedString node, object? arg) => new TreeDumperNode("interpolatedString", null, new TreeDumperNode[]
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
1158public override BoundNode VisitInterpolatedString(BoundInterpolatedString node)
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
173static (BoundInterpolatedString interpolatedString, ArrayBuilder<BoundExpression> partsBuilder) =>
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
853if (argument is BoundConversion { ConversionKind: ConversionKind.InterpolatedStringHandler, Operand: BoundInterpolatedString or BoundBinaryOperator } conversion) 927if (argument is BoundConversion { ConversionKind: ConversionKind.InterpolatedStringHandler, Operand: BoundInterpolatedString or BoundBinaryOperator } conversion)
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
29BoundInterpolatedString { InterpolationData: { BuilderType: not null } d, Parts: { } p } => (d, p),
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (3)
19var interpolatedString = (BoundInterpolatedString)conversion.Operand; 143public override BoundNode VisitInterpolatedString(BoundInterpolatedString node)
Operations\CSharpOperationFactory.cs (7)
217return CreateBoundInterpolatedStringExpressionOperation((BoundInterpolatedString)boundNode); 1539Func<BoundInterpolatedString, int, (CSharpOperationFactory, InterpolatedStringHandlerData), IOperation> createInterpolatedString 1548BoundInterpolatedString boundInterpolatedString, 2254private IInterpolatedStringOperation CreateBoundInterpolatedStringExpressionOperation(BoundInterpolatedString boundInterpolatedString, ImmutableArray<(bool IsLiteral, bool HasAlignment, bool HasFormat)>? positionInfo = null) 2444case BoundInterpolatedString interpolatedString: 2459BoundInterpolatedString.AppendLiteralMethod => OperationKind.InterpolatedStringAppendLiteral, 2460BoundInterpolatedString.AppendFormattedMethod => OperationKind.InterpolatedStringAppendFormatted,
Symbols\ConstantValueUtils.cs (1)
156public override BoundNode VisitInterpolatedString(BoundInterpolatedString node)
Microsoft.CodeAnalysis.Test.Utilities (2)
Compilation\ControlFlowGraphVerifier.cs (2)
934TargetMethod: { Name: BoundInterpolatedString.AppendFormattedMethod or BoundInterpolatedString.AppendLiteralMethod, ContainingType: INamedTypeSymbol containingType }