3 instantiations of BoundInterpolatedStringArgumentPlaceholder
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Expressions.cs (1)
3873(BoundInterpolatedStringArgumentPlaceholder)(new BoundInterpolatedStringArgumentPlaceholder(
Binder\Binder_InterpolatedString.cs (1)
724new BoundInterpolatedStringArgumentPlaceholder(syntax, BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter, boolType)
Generated\BoundNodes.xml.Generated.cs (1)
7902var result = new BoundInterpolatedStringArgumentPlaceholder(this.Syntax, argumentIndex, type, this.HasErrors);
69 references to BoundInterpolatedStringArgumentPlaceholder
Microsoft.CodeAnalysis.CSharp (69)
Binder\Binder_Expressions.cs (12)
3744Debug.Assert(handlerParameterIndexes.All((index, paramLength) => index >= BoundInterpolatedStringArgumentPlaceholder.InstanceParameter && index < paramLength, 3759var handlerArgumentIndexesBuilder = ArrayBuilder<int>.GetInstance(handlerParameterIndexes.Length, fillWithValue: BoundInterpolatedStringArgumentPlaceholder.UnspecifiedParameter); 3763Debug.Assert(handlerArgumentIndexesBuilder[handlerParameterIndex] is BoundInterpolatedStringArgumentPlaceholder.UnspecifiedParameter); 3765if (handlerParameter == BoundInterpolatedStringArgumentPlaceholder.InstanceParameter) 3787var argumentPlaceholdersBuilder = ArrayBuilder<BoundInterpolatedStringArgumentPlaceholder>.GetInstance(handlerArgumentIndexes.Length); 3802case BoundInterpolatedStringArgumentPlaceholder.InstanceParameter: 3807case BoundInterpolatedStringArgumentPlaceholder.UnspecifiedParameter: 3855case BoundInterpolatedStringArgumentPlaceholder.InstanceParameter: 3860case BoundInterpolatedStringArgumentPlaceholder.UnspecifiedParameter: 3873(BoundInterpolatedStringArgumentPlaceholder)(new BoundInterpolatedStringArgumentPlaceholder( 3877hasErrors: argumentIndex == BoundInterpolatedStringArgumentPlaceholder.UnspecifiedParameter) 5914if (handlerPlaceholders.Any(static placeholder => placeholder.ArgumentIndex == BoundInterpolatedStringArgumentPlaceholder.InstanceParameter))
Binder\Binder_InterpolatedString.cs (7)
559ImmutableArray<BoundInterpolatedStringArgumentPlaceholder> additionalConstructorArguments = default, 579ImmutableArray<BoundInterpolatedStringArgumentPlaceholder> additionalConstructorArguments = default, 605ImmutableArray<BoundInterpolatedStringArgumentPlaceholder> additionalConstructorArguments, 638ImmutableArray<BoundInterpolatedStringArgumentPlaceholder> additionalConstructorArguments, 723var trailingConstructorValidityPlaceholder = 724new BoundInterpolatedStringArgumentPlaceholder(syntax, BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter, boolType) 817static void populateArguments(SyntaxNode syntax, ImmutableArray<BoundInterpolatedStringArgumentPlaceholder> additionalConstructorArguments, int baseStringLength, int numFormatHoles, NamedTypeSymbol intType, ArrayBuilder<BoundExpression> argumentsBuilder)
Binder\RefSafetyAnalysis.cs (4)
683foreach (var placeholder in interpolationData.ArgumentPlaceholders) 689case BoundInterpolatedStringArgumentPlaceholder.InstanceParameter: 700case BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter: 704case BoundInterpolatedStringArgumentPlaceholder.UnspecifiedParameter:
BoundTree\InterpolatedStringHandlerData.cs (4)
19public readonly ImmutableArray<BoundInterpolatedStringArgumentPlaceholder> ArgumentPlaceholders; 23public bool HasTrailingHandlerValidityParameter => ArgumentPlaceholders.Length > 0 && ArgumentPlaceholders[^1].ArgumentIndex == BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter; 33ImmutableArray<BoundInterpolatedStringArgumentPlaceholder> placeholders, 40Debug.Assert(placeholders.IsEmpty || placeholders.AsSpan()[..^1].All(item => item.ArgumentIndex != BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter));
FlowAnalysis\AbstractFlowPass.cs (1)
1234public override BoundNode VisitInterpolatedStringArgumentPlaceholder(BoundInterpolatedStringArgumentPlaceholder node)
FlowAnalysis\NullableWalker.cs (7)
9272|| handlerData.ArgumentPlaceholders.Single().ArgumentIndex == BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter); 9278foreach (var placeholder in handlerData.ArgumentPlaceholders) 9282case BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter: 9283case BoundInterpolatedStringArgumentPlaceholder.UnspecifiedParameter: 9287case BoundInterpolatedStringArgumentPlaceholder.InstanceParameter: 9306foreach (var placeholder in handlerData.ArgumentPlaceholders) 11918public override BoundNode? VisitInterpolatedStringArgumentPlaceholder(BoundInterpolatedStringArgumentPlaceholder node)
Generated\BoundNodes.xml.Generated.cs (10)
7898public BoundInterpolatedStringArgumentPlaceholder Update(int argumentIndex, TypeSymbol type) 7902var result = new BoundInterpolatedStringArgumentPlaceholder(this.Syntax, argumentIndex, type, this.HasErrors); 9245return VisitInterpolatedStringArgumentPlaceholder((BoundInterpolatedStringArgumentPlaceholder)node, arg); 9510public virtual R VisitInterpolatedStringArgumentPlaceholder(BoundInterpolatedStringArgumentPlaceholder node, A arg) => this.DefaultVisit(node, arg); 9746public virtual BoundNode? VisitInterpolatedStringArgumentPlaceholder(BoundInterpolatedStringArgumentPlaceholder node) => this.DefaultVisit(node); 10667public override BoundNode? VisitInterpolatedStringArgumentPlaceholder(BoundInterpolatedStringArgumentPlaceholder node) => null; 12032public override BoundNode? VisitInterpolatedStringArgumentPlaceholder(BoundInterpolatedStringArgumentPlaceholder node) 14660public override BoundNode? VisitInterpolatedStringArgumentPlaceholder(BoundInterpolatedStringArgumentPlaceholder node) 14667BoundInterpolatedStringArgumentPlaceholder updatedNode = node.Update(node.ArgumentIndex, infoAndType.Type!); 16875public override TreeDumperNode VisitInterpolatedStringArgumentPlaceholder(BoundInterpolatedStringArgumentPlaceholder node, object? arg) => new TreeDumperNode("interpolatedStringArgumentPlaceholder", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter.cs (2)
485public override BoundNode VisitInterpolatedStringArgumentPlaceholder(BoundInterpolatedStringArgumentPlaceholder node) 1244public override BoundNode? VisitInterpolatedStringArgumentPlaceholder(BoundInterpolatedStringArgumentPlaceholder node)
Lowering\LocalRewriter\LocalRewriter_Call.cs (10)
749ImmutableArray<BoundInterpolatedStringArgumentPlaceholder> argumentPlaceholders = addInterpolationPlaceholderReplacements( 761foreach (var placeholder in argumentPlaceholders) 764if (placeholder.ArgumentIndex == BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter) 826ImmutableArray<BoundInterpolatedStringArgumentPlaceholder> addInterpolationPlaceholderReplacements( 852foreach (var placeholder in interpolationData.ArgumentPlaceholders) 861case BoundInterpolatedStringArgumentPlaceholder.InstanceParameter: 889case BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter: 904return ImmutableArray<BoundInterpolatedStringArgumentPlaceholder>.Empty; 917foreach (var placeholder in interpolationData.ArgumentPlaceholders) 919if (placeholder.ArgumentIndex == BoundInterpolatedStringArgumentPlaceholder.InstanceParameter)
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (4)
56BoundInterpolatedStringArgumentPlaceholder trailingParameter = data.ArgumentPlaceholders[^1]; 244a => a is BoundInterpolatedStringArgumentPlaceholder { ArgumentIndex: BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter } 245or not BoundInterpolatedStringArgumentPlaceholder));
Operations\CSharpOperationFactory.cs (5)
283return CreateBoundInterpolatedStringArgumentPlaceholder((BoundInterpolatedStringArgumentPlaceholder)boundNode); 2481private IOperation CreateBoundInterpolatedStringArgumentPlaceholder(BoundInterpolatedStringArgumentPlaceholder placeholder) 2487if (placeholder.ArgumentIndex == BoundInterpolatedStringArgumentPlaceholder.UnspecifiedParameter) 2497BoundInterpolatedStringArgumentPlaceholder.InstanceParameter => (InterpolatedStringArgumentPlaceholderKind.CallsiteReceiver, NonArgumentIndex), 2498BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter => (InterpolatedStringArgumentPlaceholderKind.TrailingValidityArgument, NonArgumentIndex),
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
891builder.Add(BoundInterpolatedStringArgumentPlaceholder.InstanceParameter);
Symbols\ParameterSymbol.cs (1)
412/// Indexes less than 0 are constants defined on <see cref="BoundInterpolatedStringArgumentPlaceholder"/>.
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1352return (BoundInterpolatedStringArgumentPlaceholder.InstanceParameter, null);