3 instantiations of BoundInterpolatedStringArgumentPlaceholder
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_InterpolatedString.cs (2)
578
new
BoundInterpolatedStringArgumentPlaceholder
(syntax, BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter, boolType)
1029
(BoundInterpolatedStringArgumentPlaceholder)(new
BoundInterpolatedStringArgumentPlaceholder
(
Generated\BoundNodes.xml.Generated.cs (1)
7584
var result = new
BoundInterpolatedStringArgumentPlaceholder
(this.Syntax, argumentIndex, type, this.HasErrors);
69 references to BoundInterpolatedStringArgumentPlaceholder
Microsoft.CodeAnalysis.CSharp (69)
Binder\Binder_Expressions.cs (1)
5058
if (handlerPlaceholders.Any(static placeholder => placeholder.ArgumentIndex ==
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter))
Binder\Binder_InterpolatedString.cs (18)
413
ImmutableArray<
BoundInterpolatedStringArgumentPlaceholder
> additionalConstructorArguments = default,
433
ImmutableArray<
BoundInterpolatedStringArgumentPlaceholder
> additionalConstructorArguments = default,
459
ImmutableArray<
BoundInterpolatedStringArgumentPlaceholder
> additionalConstructorArguments,
492
ImmutableArray<
BoundInterpolatedStringArgumentPlaceholder
> additionalConstructorArguments,
577
var
trailingConstructorValidityPlaceholder =
578
new BoundInterpolatedStringArgumentPlaceholder(syntax,
BoundInterpolatedStringArgumentPlaceholder
.TrailingConstructorValidityParameter, boolType)
671
static void populateArguments(SyntaxNode syntax, ImmutableArray<
BoundInterpolatedStringArgumentPlaceholder
> additionalConstructorArguments, int baseStringLength, int numFormatHoles, NamedTypeSymbol intType, ArrayBuilder<BoundExpression> argumentsBuilder)
901
Debug.Assert(handlerParameterIndexes.All((index, paramLength) => index >=
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter && index < paramLength,
916
var handlerArgumentIndexesBuilder = ArrayBuilder<int>.GetInstance(handlerParameterIndexes.Length, fillWithValue:
BoundInterpolatedStringArgumentPlaceholder
.UnspecifiedParameter);
920
Debug.Assert(handlerArgumentIndexesBuilder[handlerParameterIndex] is
BoundInterpolatedStringArgumentPlaceholder
.UnspecifiedParameter);
922
if (handlerParameter ==
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter)
944
var argumentPlaceholdersBuilder = ArrayBuilder<
BoundInterpolatedStringArgumentPlaceholder
>.GetInstance(handlerArgumentIndexes.Length);
959
case
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter:
964
case
BoundInterpolatedStringArgumentPlaceholder
.UnspecifiedParameter:
1011
case
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter:
1016
case
BoundInterpolatedStringArgumentPlaceholder
.UnspecifiedParameter:
1029
(
BoundInterpolatedStringArgumentPlaceholder
)(new BoundInterpolatedStringArgumentPlaceholder(
1033
hasErrors: argumentIndex ==
BoundInterpolatedStringArgumentPlaceholder
.UnspecifiedParameter)
Binder\RefSafetyAnalysis.cs (4)
612
foreach (
var
placeholder in interpolationData.ArgumentPlaceholders)
618
case
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter:
622
case
BoundInterpolatedStringArgumentPlaceholder
.TrailingConstructorValidityParameter:
623
case
BoundInterpolatedStringArgumentPlaceholder
.UnspecifiedParameter:
BoundTree\InterpolatedStringHandlerData.cs (4)
19
public readonly ImmutableArray<
BoundInterpolatedStringArgumentPlaceholder
> ArgumentPlaceholders;
23
public bool HasTrailingHandlerValidityParameter => ArgumentPlaceholders.Length > 0 && ArgumentPlaceholders[^1].ArgumentIndex ==
BoundInterpolatedStringArgumentPlaceholder
.TrailingConstructorValidityParameter;
33
ImmutableArray<
BoundInterpolatedStringArgumentPlaceholder
> placeholders,
40
Debug.Assert(placeholders.IsEmpty || placeholders.AsSpan()[..^1].All(item => item.ArgumentIndex !=
BoundInterpolatedStringArgumentPlaceholder
.TrailingConstructorValidityParameter));
FlowAnalysis\AbstractFlowPass.cs (1)
1178
public override BoundNode VisitInterpolatedStringArgumentPlaceholder(
BoundInterpolatedStringArgumentPlaceholder
node)
FlowAnalysis\NullableWalker.cs (7)
8376
|| handlerData.ArgumentPlaceholders.Single().ArgumentIndex ==
BoundInterpolatedStringArgumentPlaceholder
.TrailingConstructorValidityParameter);
8382
foreach (
var
placeholder in handlerData.ArgumentPlaceholders)
8386
case
BoundInterpolatedStringArgumentPlaceholder
.TrailingConstructorValidityParameter:
8387
case
BoundInterpolatedStringArgumentPlaceholder
.UnspecifiedParameter:
8391
case
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter:
8410
foreach (
var
placeholder in handlerData.ArgumentPlaceholders)
10999
public override BoundNode? VisitInterpolatedStringArgumentPlaceholder(
BoundInterpolatedStringArgumentPlaceholder
node)
Generated\BoundNodes.xml.Generated.cs (10)
7580
public
BoundInterpolatedStringArgumentPlaceholder
Update(int argumentIndex, TypeSymbol type)
7584
var
result = new BoundInterpolatedStringArgumentPlaceholder(this.Syntax, argumentIndex, type, this.HasErrors);
8911
return VisitInterpolatedStringArgumentPlaceholder((
BoundInterpolatedStringArgumentPlaceholder
)node, arg);
9168
public virtual R VisitInterpolatedStringArgumentPlaceholder(
BoundInterpolatedStringArgumentPlaceholder
node, A arg) => this.DefaultVisit(node, arg);
9396
public virtual BoundNode? VisitInterpolatedStringArgumentPlaceholder(
BoundInterpolatedStringArgumentPlaceholder
node) => this.DefaultVisit(node);
10288
public override BoundNode? VisitInterpolatedStringArgumentPlaceholder(
BoundInterpolatedStringArgumentPlaceholder
node) => null;
11598
public override BoundNode? VisitInterpolatedStringArgumentPlaceholder(
BoundInterpolatedStringArgumentPlaceholder
node)
14123
public override BoundNode? VisitInterpolatedStringArgumentPlaceholder(
BoundInterpolatedStringArgumentPlaceholder
node)
14130
BoundInterpolatedStringArgumentPlaceholder
updatedNode = node.Update(node.ArgumentIndex, infoAndType.Type!);
16255
public override TreeDumperNode VisitInterpolatedStringArgumentPlaceholder(
BoundInterpolatedStringArgumentPlaceholder
node, object? arg) => new TreeDumperNode("interpolatedStringArgumentPlaceholder", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter.cs (2)
420
public override BoundNode VisitInterpolatedStringArgumentPlaceholder(
BoundInterpolatedStringArgumentPlaceholder
node)
1109
public override BoundNode? VisitInterpolatedStringArgumentPlaceholder(
BoundInterpolatedStringArgumentPlaceholder
node)
Lowering\LocalRewriter\LocalRewriter_Call.cs (10)
508
ImmutableArray<
BoundInterpolatedStringArgumentPlaceholder
> argumentPlaceholders = addInterpolationPlaceholderReplacements(
518
foreach (
var
placeholder in argumentPlaceholders)
521
if (placeholder.ArgumentIndex ==
BoundInterpolatedStringArgumentPlaceholder
.TrailingConstructorValidityParameter)
583
ImmutableArray<
BoundInterpolatedStringArgumentPlaceholder
> addInterpolationPlaceholderReplacements(
609
foreach (
var
placeholder in interpolationData.ArgumentPlaceholders)
618
case
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter:
646
case
BoundInterpolatedStringArgumentPlaceholder
.TrailingConstructorValidityParameter:
661
return ImmutableArray<
BoundInterpolatedStringArgumentPlaceholder
>.Empty;
674
foreach (
var
placeholder in interpolationData.ArgumentPlaceholders)
676
if (placeholder.ArgumentIndex ==
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter)
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (4)
100
BoundInterpolatedStringArgumentPlaceholder
trailingParameter = data.ArgumentPlaceholders[^1];
393
a => a is
BoundInterpolatedStringArgumentPlaceholder
{ ArgumentIndex:
BoundInterpolatedStringArgumentPlaceholder
.TrailingConstructorValidityParameter }
394
or not
BoundInterpolatedStringArgumentPlaceholder
));
Operations\CSharpOperationFactory.cs (5)
279
return CreateBoundInterpolatedStringArgumentPlaceholder((
BoundInterpolatedStringArgumentPlaceholder
)boundNode);
2364
private IOperation CreateBoundInterpolatedStringArgumentPlaceholder(
BoundInterpolatedStringArgumentPlaceholder
placeholder)
2370
if (placeholder.ArgumentIndex ==
BoundInterpolatedStringArgumentPlaceholder
.UnspecifiedParameter)
2380
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter => (InterpolatedStringArgumentPlaceholderKind.CallsiteReceiver, NonArgumentIndex),
2381
BoundInterpolatedStringArgumentPlaceholder
.TrailingConstructorValidityParameter => (InterpolatedStringArgumentPlaceholderKind.TrailingValidityArgument, NonArgumentIndex),
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
874
builder.Add(
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter);
Symbols\ParameterSymbol.cs (1)
403
/// Indexes less than 0 are constants defined on <see cref="
BoundInterpolatedStringArgumentPlaceholder
"/>.
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1343
return (
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter, null);