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