3 instantiations of BoundInterpolatedStringArgumentPlaceholder
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Expressions.cs (1)
3947
(BoundInterpolatedStringArgumentPlaceholder)(new
BoundInterpolatedStringArgumentPlaceholder
(
Binder\Binder_InterpolatedString.cs (1)
724
new
BoundInterpolatedStringArgumentPlaceholder
(syntax, BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter, boolType)
Generated\BoundNodes.xml.Generated.cs (1)
8022
var result = new
BoundInterpolatedStringArgumentPlaceholder
(this.Syntax, argumentIndex, type, this.HasErrors);
86 references to BoundInterpolatedStringArgumentPlaceholder
Microsoft.CodeAnalysis.CSharp (86)
Binder\Binder_Expressions.cs (16)
3810
Debug.Assert(handlerParameterIndexes.All((index, paramLength) => index >=
BoundInterpolatedStringArgumentPlaceholder
.ExtensionReceiver && index < paramLength,
3825
var handlerArgumentIndexesBuilder = ArrayBuilder<int>.GetInstance(handlerParameterIndexes.Length, fillWithValue:
BoundInterpolatedStringArgumentPlaceholder
.UnspecifiedParameter);
3829
Debug.Assert(handlerArgumentIndexesBuilder[handlerParameterIndex] is
BoundInterpolatedStringArgumentPlaceholder
.UnspecifiedParameter);
3831
if (handlerParameter is
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter or
BoundInterpolatedStringArgumentPlaceholder
.ExtensionReceiver)
3853
var argumentPlaceholdersBuilder = ArrayBuilder<
BoundInterpolatedStringArgumentPlaceholder
>.GetInstance(handlerArgumentIndexes.Length);
3868
case
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter:
3873
case
BoundInterpolatedStringArgumentPlaceholder
.ExtensionReceiver:
3880
case
BoundInterpolatedStringArgumentPlaceholder
.UnspecifiedParameter:
3928
case
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter:
3929
case
BoundInterpolatedStringArgumentPlaceholder
.ExtensionReceiver:
3934
case
BoundInterpolatedStringArgumentPlaceholder
.UnspecifiedParameter:
3947
(
BoundInterpolatedStringArgumentPlaceholder
)(new BoundInterpolatedStringArgumentPlaceholder(
3951
hasErrors: argumentIndex ==
BoundInterpolatedStringArgumentPlaceholder
.UnspecifiedParameter)
6134
if (handlerPlaceholders.Any(static placeholder => placeholder.ArgumentIndex is
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter or
BoundInterpolatedStringArgumentPlaceholder
.ExtensionReceiver))
Binder\Binder_InterpolatedString.cs (7)
559
ImmutableArray<
BoundInterpolatedStringArgumentPlaceholder
> additionalConstructorArguments = default,
579
ImmutableArray<
BoundInterpolatedStringArgumentPlaceholder
> additionalConstructorArguments = default,
605
ImmutableArray<
BoundInterpolatedStringArgumentPlaceholder
> additionalConstructorArguments,
638
ImmutableArray<
BoundInterpolatedStringArgumentPlaceholder
> additionalConstructorArguments,
723
var
trailingConstructorValidityPlaceholder =
724
new BoundInterpolatedStringArgumentPlaceholder(syntax,
BoundInterpolatedStringArgumentPlaceholder
.TrailingConstructorValidityParameter, boolType)
817
static void populateArguments(SyntaxNode syntax, ImmutableArray<
BoundInterpolatedStringArgumentPlaceholder
> additionalConstructorArguments, int baseStringLength, int numFormatHoles, NamedTypeSymbol intType, ArrayBuilder<BoundExpression> argumentsBuilder)
Binder\RefSafetyAnalysis.cs (5)
897
foreach (
var
placeholder in interpolationData.ArgumentPlaceholders)
906
case
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter:
917
case
BoundInterpolatedStringArgumentPlaceholder
.TrailingConstructorValidityParameter:
921
case
BoundInterpolatedStringArgumentPlaceholder
.UnspecifiedParameter:
924
case
BoundInterpolatedStringArgumentPlaceholder
.ExtensionReceiver:
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)
1234
public override BoundNode VisitInterpolatedStringArgumentPlaceholder(
BoundInterpolatedStringArgumentPlaceholder
node)
FlowAnalysis\NullableWalker.cs (9)
10380
|| handlerData.ArgumentPlaceholders.Single().ArgumentIndex ==
BoundInterpolatedStringArgumentPlaceholder
.TrailingConstructorValidityParameter);
10389
foreach (
var
placeholder in handlerData.ArgumentPlaceholders)
10393
case
BoundInterpolatedStringArgumentPlaceholder
.TrailingConstructorValidityParameter:
10394
case
BoundInterpolatedStringArgumentPlaceholder
.UnspecifiedParameter:
10398
case
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter:
10400
case
BoundInterpolatedStringArgumentPlaceholder
.ExtensionReceiver:
10422
foreach (
var
placeholder in handlerData.ArgumentPlaceholders)
10424
if (placeholder.ArgumentIndex < previousArgumentConversionResults.Count && placeholder.ArgumentIndex is >= 0 or
BoundInterpolatedStringArgumentPlaceholder
.ExtensionReceiver)
13594
public override BoundNode? VisitInterpolatedStringArgumentPlaceholder(
BoundInterpolatedStringArgumentPlaceholder
node)
Generated\BoundNodes.xml.Generated.cs (10)
8018
public
BoundInterpolatedStringArgumentPlaceholder
Update(int argumentIndex, TypeSymbol type)
8022
var
result = new BoundInterpolatedStringArgumentPlaceholder(this.Syntax, argumentIndex, type, this.HasErrors);
9494
return VisitInterpolatedStringArgumentPlaceholder((
BoundInterpolatedStringArgumentPlaceholder
)node, arg);
9766
public virtual R VisitInterpolatedStringArgumentPlaceholder(
BoundInterpolatedStringArgumentPlaceholder
node, A arg) => this.DefaultVisit(node, arg);
10007
public virtual BoundNode? VisitInterpolatedStringArgumentPlaceholder(
BoundInterpolatedStringArgumentPlaceholder
node) => this.DefaultVisit(node);
10956
public override BoundNode? VisitInterpolatedStringArgumentPlaceholder(
BoundInterpolatedStringArgumentPlaceholder
node) => null;
12487
public override BoundNode? VisitInterpolatedStringArgumentPlaceholder(
BoundInterpolatedStringArgumentPlaceholder
node)
15153
public override BoundNode? VisitInterpolatedStringArgumentPlaceholder(
BoundInterpolatedStringArgumentPlaceholder
node)
15160
BoundInterpolatedStringArgumentPlaceholder
updatedNode = node.Update(node.ArgumentIndex, infoAndType.Type!);
17418
public override TreeDumperNode VisitInterpolatedStringArgumentPlaceholder(
BoundInterpolatedStringArgumentPlaceholder
node, object? arg) => new TreeDumperNode("interpolatedStringArgumentPlaceholder", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter.cs (1)
495
public override BoundNode VisitInterpolatedStringArgumentPlaceholder(
BoundInterpolatedStringArgumentPlaceholder
node)
Lowering\LocalRewriter\LocalRewriter_Call.cs (12)
768
ImmutableArray<
BoundInterpolatedStringArgumentPlaceholder
> argumentPlaceholders = addInterpolationPlaceholderReplacements(
780
foreach (
var
placeholder in argumentPlaceholders)
783
if (placeholder.ArgumentIndex ==
BoundInterpolatedStringArgumentPlaceholder
.TrailingConstructorValidityParameter)
845
ImmutableArray<
BoundInterpolatedStringArgumentPlaceholder
> addInterpolationPlaceholderReplacements(
871
foreach (
var
placeholder in interpolationData.ArgumentPlaceholders)
880
case
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter:
881
case
BoundInterpolatedStringArgumentPlaceholder
.ExtensionReceiver:
909
case
BoundInterpolatedStringArgumentPlaceholder
.TrailingConstructorValidityParameter:
924
return ImmutableArray<
BoundInterpolatedStringArgumentPlaceholder
>.Empty;
937
foreach (
var
placeholder in interpolationData.ArgumentPlaceholders)
939
if (placeholder.ArgumentIndex is
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter or
BoundInterpolatedStringArgumentPlaceholder
.ExtensionReceiver)
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (4)
56
BoundInterpolatedStringArgumentPlaceholder
trailingParameter = data.ArgumentPlaceholders[^1];
244
a => a is
BoundInterpolatedStringArgumentPlaceholder
{ ArgumentIndex:
BoundInterpolatedStringArgumentPlaceholder
.TrailingConstructorValidityParameter }
245
or not
BoundInterpolatedStringArgumentPlaceholder
));
Operations\CSharpOperationFactory.cs (6)
282
return CreateBoundInterpolatedStringArgumentPlaceholder((
BoundInterpolatedStringArgumentPlaceholder
)boundNode);
2547
private IOperation CreateBoundInterpolatedStringArgumentPlaceholder(
BoundInterpolatedStringArgumentPlaceholder
placeholder)
2553
if (placeholder.ArgumentIndex ==
BoundInterpolatedStringArgumentPlaceholder
.UnspecifiedParameter)
2563
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter or
BoundInterpolatedStringArgumentPlaceholder
.ExtensionReceiver => (InterpolatedStringArgumentPlaceholderKind.CallsiteReceiver, NonArgumentIndex),
2564
BoundInterpolatedStringArgumentPlaceholder
.TrailingConstructorValidityParameter => (InterpolatedStringArgumentPlaceholderKind.TrailingValidityArgument, NonArgumentIndex),
Symbols\Extensions\SourceExtensionImplementationMethodSymbol.cs (6)
230
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter => throw ExceptionUtilities.Unreachable(),
231
BoundInterpolatedStringArgumentPlaceholder
.ExtensionReceiver => 0,
232
BoundInterpolatedStringArgumentPlaceholder
.TrailingConstructorValidityParameter =>
BoundInterpolatedStringArgumentPlaceholder
.TrailingConstructorValidityParameter,
233
BoundInterpolatedStringArgumentPlaceholder
.UnspecifiedParameter =>
BoundInterpolatedStringArgumentPlaceholder
.UnspecifiedParameter,
Symbols\Metadata\PE\PEParameterSymbol.cs (2)
916
builder.Add(
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter);
923
builder.Add(
BoundInterpolatedStringArgumentPlaceholder
.ExtensionReceiver);
Symbols\ParameterSymbol.cs (1)
429
/// Indexes less than 0 are constants defined on <see cref="
BoundInterpolatedStringArgumentPlaceholder
"/>.
Symbols\Source\SourceComplexParameterSymbol.cs (2)
1397
return
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter;
1409
return
BoundInterpolatedStringArgumentPlaceholder
.ExtensionReceiver;