3 instantiations of BoundInterpolatedStringArgumentPlaceholder
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Expressions.cs (1)
3890(BoundInterpolatedStringArgumentPlaceholder)(new BoundInterpolatedStringArgumentPlaceholder(
Binder\Binder_InterpolatedString.cs (1)
724new BoundInterpolatedStringArgumentPlaceholder(syntax, BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter, boolType)
Generated\BoundNodes.xml.Generated.cs (1)
7904var result = new BoundInterpolatedStringArgumentPlaceholder(this.Syntax, argumentIndex, type, this.HasErrors);
87 references to BoundInterpolatedStringArgumentPlaceholder
Microsoft.CodeAnalysis.CSharp (87)
Binder\Binder_Expressions.cs (16)
3753Debug.Assert(handlerParameterIndexes.All((index, paramLength) => index >= BoundInterpolatedStringArgumentPlaceholder.ExtensionReceiver && index < paramLength, 3768var handlerArgumentIndexesBuilder = ArrayBuilder<int>.GetInstance(handlerParameterIndexes.Length, fillWithValue: BoundInterpolatedStringArgumentPlaceholder.UnspecifiedParameter); 3772Debug.Assert(handlerArgumentIndexesBuilder[handlerParameterIndex] is BoundInterpolatedStringArgumentPlaceholder.UnspecifiedParameter); 3774if (handlerParameter is BoundInterpolatedStringArgumentPlaceholder.InstanceParameter or BoundInterpolatedStringArgumentPlaceholder.ExtensionReceiver) 3796var argumentPlaceholdersBuilder = ArrayBuilder<BoundInterpolatedStringArgumentPlaceholder>.GetInstance(handlerArgumentIndexes.Length); 3811case BoundInterpolatedStringArgumentPlaceholder.InstanceParameter: 3816case BoundInterpolatedStringArgumentPlaceholder.ExtensionReceiver: 3823case BoundInterpolatedStringArgumentPlaceholder.UnspecifiedParameter: 3871case BoundInterpolatedStringArgumentPlaceholder.InstanceParameter: 3872case BoundInterpolatedStringArgumentPlaceholder.ExtensionReceiver: 3877case BoundInterpolatedStringArgumentPlaceholder.UnspecifiedParameter: 3890(BoundInterpolatedStringArgumentPlaceholder)(new BoundInterpolatedStringArgumentPlaceholder( 3894hasErrors: argumentIndex == BoundInterpolatedStringArgumentPlaceholder.UnspecifiedParameter) 6007if (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)
862foreach (var placeholder in interpolationData.ArgumentPlaceholders) 871case BoundInterpolatedStringArgumentPlaceholder.InstanceParameter: 882case BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter: 886case BoundInterpolatedStringArgumentPlaceholder.UnspecifiedParameter: 889case BoundInterpolatedStringArgumentPlaceholder.ExtensionReceiver:
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)
9907|| handlerData.ArgumentPlaceholders.Single().ArgumentIndex == BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter); 9916foreach (var placeholder in handlerData.ArgumentPlaceholders) 9920case BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter: 9921case BoundInterpolatedStringArgumentPlaceholder.UnspecifiedParameter: 9925case BoundInterpolatedStringArgumentPlaceholder.InstanceParameter: 9927case BoundInterpolatedStringArgumentPlaceholder.ExtensionReceiver: 9949foreach (var placeholder in handlerData.ArgumentPlaceholders) 9951if (placeholder.ArgumentIndex < previousArgumentConversionResults.Count && placeholder.ArgumentIndex is >= 0 or BoundInterpolatedStringArgumentPlaceholder.ExtensionReceiver) 12874public override BoundNode? VisitInterpolatedStringArgumentPlaceholder(BoundInterpolatedStringArgumentPlaceholder node)
Generated\BoundNodes.xml.Generated.cs (10)
7900public BoundInterpolatedStringArgumentPlaceholder Update(int argumentIndex, TypeSymbol type) 7904var result = new BoundInterpolatedStringArgumentPlaceholder(this.Syntax, argumentIndex, type, this.HasErrors); 9283return VisitInterpolatedStringArgumentPlaceholder((BoundInterpolatedStringArgumentPlaceholder)node, arg); 9548public virtual R VisitInterpolatedStringArgumentPlaceholder(BoundInterpolatedStringArgumentPlaceholder node, A arg) => this.DefaultVisit(node, arg); 9784public virtual BoundNode? VisitInterpolatedStringArgumentPlaceholder(BoundInterpolatedStringArgumentPlaceholder node) => this.DefaultVisit(node); 10706public override BoundNode? VisitInterpolatedStringArgumentPlaceholder(BoundInterpolatedStringArgumentPlaceholder node) => null; 12206public override BoundNode? VisitInterpolatedStringArgumentPlaceholder(BoundInterpolatedStringArgumentPlaceholder node) 14834public override BoundNode? VisitInterpolatedStringArgumentPlaceholder(BoundInterpolatedStringArgumentPlaceholder node) 14841BoundInterpolatedStringArgumentPlaceholder updatedNode = node.Update(node.ArgumentIndex, infoAndType.Type!); 17051public override TreeDumperNode VisitInterpolatedStringArgumentPlaceholder(BoundInterpolatedStringArgumentPlaceholder node, object? arg) => new TreeDumperNode("interpolatedStringArgumentPlaceholder", null, new TreeDumperNode[]
Lowering\LocalRewriter\LocalRewriter.cs (2)
485public override BoundNode VisitInterpolatedStringArgumentPlaceholder(BoundInterpolatedStringArgumentPlaceholder node) 1268public override BoundNode? VisitInterpolatedStringArgumentPlaceholder(BoundInterpolatedStringArgumentPlaceholder node)
Lowering\LocalRewriter\LocalRewriter_Call.cs (12)
764ImmutableArray<BoundInterpolatedStringArgumentPlaceholder> argumentPlaceholders = addInterpolationPlaceholderReplacements( 776foreach (var placeholder in argumentPlaceholders) 779if (placeholder.ArgumentIndex == BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter) 843ImmutableArray<BoundInterpolatedStringArgumentPlaceholder> addInterpolationPlaceholderReplacements( 869foreach (var placeholder in interpolationData.ArgumentPlaceholders) 878case BoundInterpolatedStringArgumentPlaceholder.InstanceParameter: 879case BoundInterpolatedStringArgumentPlaceholder.ExtensionReceiver: 907case BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter: 922return ImmutableArray<BoundInterpolatedStringArgumentPlaceholder>.Empty; 935foreach (var placeholder in interpolationData.ArgumentPlaceholders) 937if (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)
228BoundInterpolatedStringArgumentPlaceholder.InstanceParameter => throw ExceptionUtilities.Unreachable(), 229BoundInterpolatedStringArgumentPlaceholder.ExtensionReceiver => 0, 230BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter => BoundInterpolatedStringArgumentPlaceholder.TrailingConstructorValidityParameter, 231BoundInterpolatedStringArgumentPlaceholder.UnspecifiedParameter => BoundInterpolatedStringArgumentPlaceholder.UnspecifiedParameter,
Symbols\Metadata\PE\PEParameterSymbol.cs (2)
897builder.Add(BoundInterpolatedStringArgumentPlaceholder.InstanceParameter); 904builder.Add(BoundInterpolatedStringArgumentPlaceholder.ExtensionReceiver);
Symbols\ParameterSymbol.cs (1)
428/// Indexes less than 0 are constants defined on <see cref="BoundInterpolatedStringArgumentPlaceholder"/>.
Symbols\Source\SourceComplexParameterSymbol.cs (2)
1402return BoundInterpolatedStringArgumentPlaceholder.InstanceParameter; 1414return BoundInterpolatedStringArgumentPlaceholder.ExtensionReceiver;