3 instantiations of BoundInterpolatedStringArgumentPlaceholder
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Expressions.cs (1)
3873
(BoundInterpolatedStringArgumentPlaceholder)(new
BoundInterpolatedStringArgumentPlaceholder
(
Binder\Binder_InterpolatedString.cs (1)
724
new
BoundInterpolatedStringArgumentPlaceholder
(syntax, BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter, boolType)
Generated\BoundNodes.xml.Generated.cs (1)
7902
var result = new
BoundInterpolatedStringArgumentPlaceholder
(this.Syntax, argumentIndex, type, this.HasErrors);
69 references to BoundInterpolatedStringArgumentPlaceholder
Microsoft.CodeAnalysis.CSharp (69)
Binder\Binder_Expressions.cs (12)
3744
Debug.Assert(handlerParameterIndexes.All((index, paramLength) => index >=
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter && index < paramLength,
3759
var handlerArgumentIndexesBuilder = ArrayBuilder<int>.GetInstance(handlerParameterIndexes.Length, fillWithValue:
BoundInterpolatedStringArgumentPlaceholder
.UnspecifiedParameter);
3763
Debug.Assert(handlerArgumentIndexesBuilder[handlerParameterIndex] is
BoundInterpolatedStringArgumentPlaceholder
.UnspecifiedParameter);
3765
if (handlerParameter ==
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter)
3787
var argumentPlaceholdersBuilder = ArrayBuilder<
BoundInterpolatedStringArgumentPlaceholder
>.GetInstance(handlerArgumentIndexes.Length);
3802
case
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter:
3807
case
BoundInterpolatedStringArgumentPlaceholder
.UnspecifiedParameter:
3855
case
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter:
3860
case
BoundInterpolatedStringArgumentPlaceholder
.UnspecifiedParameter:
3873
(
BoundInterpolatedStringArgumentPlaceholder
)(new BoundInterpolatedStringArgumentPlaceholder(
3877
hasErrors: argumentIndex ==
BoundInterpolatedStringArgumentPlaceholder
.UnspecifiedParameter)
5914
if (handlerPlaceholders.Any(static placeholder => placeholder.ArgumentIndex ==
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter))
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 (4)
683
foreach (
var
placeholder in interpolationData.ArgumentPlaceholders)
689
case
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter:
700
case
BoundInterpolatedStringArgumentPlaceholder
.TrailingConstructorValidityParameter:
704
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)
1234
public override BoundNode VisitInterpolatedStringArgumentPlaceholder(
BoundInterpolatedStringArgumentPlaceholder
node)
FlowAnalysis\NullableWalker.cs (7)
9272
|| handlerData.ArgumentPlaceholders.Single().ArgumentIndex ==
BoundInterpolatedStringArgumentPlaceholder
.TrailingConstructorValidityParameter);
9278
foreach (
var
placeholder in handlerData.ArgumentPlaceholders)
9282
case
BoundInterpolatedStringArgumentPlaceholder
.TrailingConstructorValidityParameter:
9283
case
BoundInterpolatedStringArgumentPlaceholder
.UnspecifiedParameter:
9287
case
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter:
9306
foreach (
var
placeholder in handlerData.ArgumentPlaceholders)
11918
public override BoundNode? VisitInterpolatedStringArgumentPlaceholder(
BoundInterpolatedStringArgumentPlaceholder
node)
Generated\BoundNodes.xml.Generated.cs (10)
7898
public
BoundInterpolatedStringArgumentPlaceholder
Update(int argumentIndex, TypeSymbol type)
7902
var
result = new BoundInterpolatedStringArgumentPlaceholder(this.Syntax, argumentIndex, type, this.HasErrors);
9245
return VisitInterpolatedStringArgumentPlaceholder((
BoundInterpolatedStringArgumentPlaceholder
)node, arg);
9510
public virtual R VisitInterpolatedStringArgumentPlaceholder(
BoundInterpolatedStringArgumentPlaceholder
node, A arg) => this.DefaultVisit(node, arg);
9746
public virtual BoundNode? VisitInterpolatedStringArgumentPlaceholder(
BoundInterpolatedStringArgumentPlaceholder
node) => this.DefaultVisit(node);
10667
public override BoundNode? VisitInterpolatedStringArgumentPlaceholder(
BoundInterpolatedStringArgumentPlaceholder
node) => null;
12032
public override BoundNode? VisitInterpolatedStringArgumentPlaceholder(
BoundInterpolatedStringArgumentPlaceholder
node)
14660
public override BoundNode? VisitInterpolatedStringArgumentPlaceholder(
BoundInterpolatedStringArgumentPlaceholder
node)
14667
BoundInterpolatedStringArgumentPlaceholder
updatedNode = node.Update(node.ArgumentIndex, infoAndType.Type!);
16875
public override TreeDumperNode VisitInterpolatedStringArgumentPlaceholder(
BoundInterpolatedStringArgumentPlaceholder
node, object? arg) => new TreeDumperNode("interpolatedStringArgumentPlaceholder", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter.cs (2)
485
public override BoundNode VisitInterpolatedStringArgumentPlaceholder(
BoundInterpolatedStringArgumentPlaceholder
node)
1244
public override BoundNode? VisitInterpolatedStringArgumentPlaceholder(
BoundInterpolatedStringArgumentPlaceholder
node)
Lowering\LocalRewriter\LocalRewriter_Call.cs (10)
749
ImmutableArray<
BoundInterpolatedStringArgumentPlaceholder
> argumentPlaceholders = addInterpolationPlaceholderReplacements(
761
foreach (
var
placeholder in argumentPlaceholders)
764
if (placeholder.ArgumentIndex ==
BoundInterpolatedStringArgumentPlaceholder
.TrailingConstructorValidityParameter)
826
ImmutableArray<
BoundInterpolatedStringArgumentPlaceholder
> addInterpolationPlaceholderReplacements(
852
foreach (
var
placeholder in interpolationData.ArgumentPlaceholders)
861
case
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter:
889
case
BoundInterpolatedStringArgumentPlaceholder
.TrailingConstructorValidityParameter:
904
return ImmutableArray<
BoundInterpolatedStringArgumentPlaceholder
>.Empty;
917
foreach (
var
placeholder in interpolationData.ArgumentPlaceholders)
919
if (placeholder.ArgumentIndex ==
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter)
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 (5)
283
return CreateBoundInterpolatedStringArgumentPlaceholder((
BoundInterpolatedStringArgumentPlaceholder
)boundNode);
2481
private IOperation CreateBoundInterpolatedStringArgumentPlaceholder(
BoundInterpolatedStringArgumentPlaceholder
placeholder)
2487
if (placeholder.ArgumentIndex ==
BoundInterpolatedStringArgumentPlaceholder
.UnspecifiedParameter)
2497
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter => (InterpolatedStringArgumentPlaceholderKind.CallsiteReceiver, NonArgumentIndex),
2498
BoundInterpolatedStringArgumentPlaceholder
.TrailingConstructorValidityParameter => (InterpolatedStringArgumentPlaceholderKind.TrailingValidityArgument, NonArgumentIndex),
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
891
builder.Add(
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter);
Symbols\ParameterSymbol.cs (1)
412
/// Indexes less than 0 are constants defined on <see cref="
BoundInterpolatedStringArgumentPlaceholder
"/>.
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1352
return (
BoundInterpolatedStringArgumentPlaceholder
.InstanceParameter, null);