3 instantiations of BoundInterpolatedStringArgumentPlaceholder
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Expressions.cs (1)
3867(BoundInterpolatedStringArgumentPlaceholder)(new BoundInterpolatedStringArgumentPlaceholder(
Binder\Binder_InterpolatedString.cs (1)
724new BoundInterpolatedStringArgumentPlaceholder(syntax, BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter, boolType)
Generated\BoundNodes.xml.Generated.cs (1)
7894var result = new BoundInterpolatedStringArgumentPlaceholder(this.Syntax, argumentIndex, type, this.HasErrors);
87 references to BoundInterpolatedStringArgumentPlaceholder
Microsoft.CodeAnalysis.CSharp (87)
Binder\Binder_Expressions.cs (16)
3730Debug.Assert(handlerParameterIndexes.All((index, paramLength) => index >= BoundInterpolatedStringArgumentPlaceholder.ExtensionReceiver && index < paramLength, 3745var handlerArgumentIndexesBuilder = ArrayBuilder<int>.GetInstance(handlerParameterIndexes.Length, fillWithValue: BoundInterpolatedStringArgumentPlaceholder.UnspecifiedParameter); 3749Debug.Assert(handlerArgumentIndexesBuilder[handlerParameterIndex] is BoundInterpolatedStringArgumentPlaceholder.UnspecifiedParameter); 3751if (handlerParameter is BoundInterpolatedStringArgumentPlaceholder.InstanceParameter or BoundInterpolatedStringArgumentPlaceholder.ExtensionReceiver) 3773var argumentPlaceholdersBuilder = ArrayBuilder<BoundInterpolatedStringArgumentPlaceholder>.GetInstance(handlerArgumentIndexes.Length); 3788case BoundInterpolatedStringArgumentPlaceholder.InstanceParameter: 3793case BoundInterpolatedStringArgumentPlaceholder.ExtensionReceiver: 3800case BoundInterpolatedStringArgumentPlaceholder.UnspecifiedParameter: 3848case BoundInterpolatedStringArgumentPlaceholder.InstanceParameter: 3849case BoundInterpolatedStringArgumentPlaceholder.ExtensionReceiver: 3854case BoundInterpolatedStringArgumentPlaceholder.UnspecifiedParameter: 3867(BoundInterpolatedStringArgumentPlaceholder)(new BoundInterpolatedStringArgumentPlaceholder( 3871hasErrors: argumentIndex == BoundInterpolatedStringArgumentPlaceholder.UnspecifiedParameter) 5979if (handlerPlaceholders.Any(static placeholder => placeholder.ArgumentIndex is BoundInterpolatedStringArgumentPlaceholder.InstanceParameter or BoundInterpolatedStringArgumentPlaceholder.ExtensionReceiver))
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 (5)
747foreach (var placeholder in interpolationData.ArgumentPlaceholders) 753case BoundInterpolatedStringArgumentPlaceholder.InstanceParameter: 754case BoundInterpolatedStringArgumentPlaceholder.ExtensionReceiver: 765case BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter: 769case 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)
1233public override BoundNode VisitInterpolatedStringArgumentPlaceholder(BoundInterpolatedStringArgumentPlaceholder node)
FlowAnalysis\NullableWalker.cs (9)
9768|| handlerData.ArgumentPlaceholders.Single().ArgumentIndex == BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter); 9777foreach (var placeholder in handlerData.ArgumentPlaceholders) 9781case BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter: 9782case BoundInterpolatedStringArgumentPlaceholder.UnspecifiedParameter: 9786case BoundInterpolatedStringArgumentPlaceholder.InstanceParameter: 9788case BoundInterpolatedStringArgumentPlaceholder.ExtensionReceiver: 9810foreach (var placeholder in handlerData.ArgumentPlaceholders) 9812if (placeholder.ArgumentIndex < previousArgumentConversionResults.Count && placeholder.ArgumentIndex is >= 0 or BoundInterpolatedStringArgumentPlaceholder.ExtensionReceiver) 12735public override BoundNode? VisitInterpolatedStringArgumentPlaceholder(BoundInterpolatedStringArgumentPlaceholder node)
Generated\BoundNodes.xml.Generated.cs (10)
7890public BoundInterpolatedStringArgumentPlaceholder Update(int argumentIndex, TypeSymbol type) 7894var result = new BoundInterpolatedStringArgumentPlaceholder(this.Syntax, argumentIndex, type, this.HasErrors); 9273return VisitInterpolatedStringArgumentPlaceholder((BoundInterpolatedStringArgumentPlaceholder)node, arg); 9538public virtual R VisitInterpolatedStringArgumentPlaceholder(BoundInterpolatedStringArgumentPlaceholder node, A arg) => this.DefaultVisit(node, arg); 9774public virtual BoundNode? VisitInterpolatedStringArgumentPlaceholder(BoundInterpolatedStringArgumentPlaceholder node) => this.DefaultVisit(node); 10695public override BoundNode? VisitInterpolatedStringArgumentPlaceholder(BoundInterpolatedStringArgumentPlaceholder node) => null; 12194public override BoundNode? VisitInterpolatedStringArgumentPlaceholder(BoundInterpolatedStringArgumentPlaceholder node) 14821public override BoundNode? VisitInterpolatedStringArgumentPlaceholder(BoundInterpolatedStringArgumentPlaceholder node) 14828BoundInterpolatedStringArgumentPlaceholder updatedNode = node.Update(node.ArgumentIndex, infoAndType.Type!); 17037public override TreeDumperNode VisitInterpolatedStringArgumentPlaceholder(BoundInterpolatedStringArgumentPlaceholder node, object? arg) => new TreeDumperNode("interpolatedStringArgumentPlaceholder", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter.cs (2)
485public override BoundNode VisitInterpolatedStringArgumentPlaceholder(BoundInterpolatedStringArgumentPlaceholder node) 1263public override BoundNode? VisitInterpolatedStringArgumentPlaceholder(BoundInterpolatedStringArgumentPlaceholder node)
Lowering\LocalRewriter\LocalRewriter_Call.cs (12)
744ImmutableArray<BoundInterpolatedStringArgumentPlaceholder> argumentPlaceholders = addInterpolationPlaceholderReplacements( 756foreach (var placeholder in argumentPlaceholders) 759if (placeholder.ArgumentIndex == BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter) 821ImmutableArray<BoundInterpolatedStringArgumentPlaceholder> addInterpolationPlaceholderReplacements( 847foreach (var placeholder in interpolationData.ArgumentPlaceholders) 856case BoundInterpolatedStringArgumentPlaceholder.InstanceParameter: 857case BoundInterpolatedStringArgumentPlaceholder.ExtensionReceiver: 885case BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter: 900return ImmutableArray<BoundInterpolatedStringArgumentPlaceholder>.Empty; 913foreach (var placeholder in interpolationData.ArgumentPlaceholders) 915if (placeholder.ArgumentIndex is BoundInterpolatedStringArgumentPlaceholder.InstanceParameter or BoundInterpolatedStringArgumentPlaceholder.ExtensionReceiver)
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (4)
56BoundInterpolatedStringArgumentPlaceholder trailingParameter = data.ArgumentPlaceholders[^1]; 244a => a is BoundInterpolatedStringArgumentPlaceholder { ArgumentIndex: BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter } 245or not BoundInterpolatedStringArgumentPlaceholder));
Operations\CSharpOperationFactory.cs (6)
283return CreateBoundInterpolatedStringArgumentPlaceholder((BoundInterpolatedStringArgumentPlaceholder)boundNode); 2481private IOperation CreateBoundInterpolatedStringArgumentPlaceholder(BoundInterpolatedStringArgumentPlaceholder placeholder) 2487if (placeholder.ArgumentIndex == BoundInterpolatedStringArgumentPlaceholder.UnspecifiedParameter) 2497BoundInterpolatedStringArgumentPlaceholder.InstanceParameter or BoundInterpolatedStringArgumentPlaceholder.ExtensionReceiver => (InterpolatedStringArgumentPlaceholderKind.CallsiteReceiver, NonArgumentIndex), 2498BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter => (InterpolatedStringArgumentPlaceholderKind.TrailingValidityArgument, NonArgumentIndex),
Symbols\Extensions\SourceExtensionImplementationMethodSymbol.cs (6)
231BoundInterpolatedStringArgumentPlaceholder.InstanceParameter => throw ExceptionUtilities.Unreachable(), 232BoundInterpolatedStringArgumentPlaceholder.ExtensionReceiver => 0, 233BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter => BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter, 234BoundInterpolatedStringArgumentPlaceholder.UnspecifiedParameter => BoundInterpolatedStringArgumentPlaceholder.UnspecifiedParameter,
Symbols\Metadata\PE\PEParameterSymbol.cs (2)
901builder.Add(BoundInterpolatedStringArgumentPlaceholder.InstanceParameter); 908builder.Add(BoundInterpolatedStringArgumentPlaceholder.ExtensionReceiver);
Symbols\ParameterSymbol.cs (1)
417/// Indexes less than 0 are constants defined on <see cref="BoundInterpolatedStringArgumentPlaceholder"/>.
Symbols\Source\SourceComplexParameterSymbol.cs (2)
1354return BoundInterpolatedStringArgumentPlaceholder.InstanceParameter; 1366return BoundInterpolatedStringArgumentPlaceholder.ExtensionReceiver;