13 types derived from BoundValuePlaceholderBase
Microsoft.CodeAnalysis.CSharp (13)
Generated\BoundNodes.xml.Generated.cs (13)
455
internal abstract partial class BoundEarlyValuePlaceholderBase :
BoundValuePlaceholderBase
469
internal sealed partial class BoundValuePlaceholder :
BoundValuePlaceholderBase
497
internal sealed partial class BoundCapturedReceiverPlaceholder :
BoundValuePlaceholderBase
527
internal sealed partial class BoundDeconstructValuePlaceholder :
BoundValuePlaceholderBase
568
internal sealed partial class BoundTupleOperandPlaceholder :
BoundValuePlaceholderBase
603
internal sealed partial class BoundAwaitableValuePlaceholder :
BoundValuePlaceholderBase
632
internal sealed partial class BoundDisposableValuePlaceholder :
BoundValuePlaceholderBase
667
internal sealed partial class BoundObjectOrCollectionValuePlaceholder :
BoundValuePlaceholderBase
705
internal sealed partial class BoundImplicitIndexerValuePlaceholder :
BoundValuePlaceholderBase
740
internal sealed partial class BoundImplicitIndexerReceiverPlaceholder :
BoundValuePlaceholderBase
6476
internal sealed partial class BoundCollectionExpressionSpreadExpressionPlaceholder :
BoundValuePlaceholderBase
7842
internal sealed partial class BoundInterpolatedStringHandlerPlaceholder :
BoundValuePlaceholderBase
7870
internal sealed partial class BoundInterpolatedStringArgumentPlaceholder :
BoundValuePlaceholderBase
42 references to BoundValuePlaceholderBase
Microsoft.CodeAnalysis.CSharp (42)
Binder\Binder.ValueChecks.cs (4)
942
Debug.Assert(expr is not
BoundValuePlaceholderBase
, $"Placeholder kind {expr.Kind} should be explicitly handled");
2277
Debug.Assert(receiver is not
BoundValuePlaceholderBase
&& method is not null && receiver.Type?.IsReferenceType == false);
4070
return GetPlaceholderScope((
BoundValuePlaceholderBase
)expr);
4757
if (GetPlaceholderScope((
BoundValuePlaceholderBase
)expr) > escapeTo)
Binder\Binder_Expressions.cs (1)
10044
BoundValuePlaceholderBase
receiverPlaceholder,
Binder\Binder_Invocation.cs (1)
1336
if (receiver is
BoundValuePlaceholderBase
|| receiver?.Type is null or { IsReferenceType: true })
Binder\RefSafetyAnalysis.cs (18)
64
private Dictionary<
BoundValuePlaceholderBase
, uint>? _placeholderScopes;
156
private readonly ArrayBuilder<(
BoundValuePlaceholderBase
, uint)> _placeholders;
158
public PlaceholderRegion(RefSafetyAnalysis analysis, ArrayBuilder<(
BoundValuePlaceholderBase
, uint)> placeholders)
194
private void AddPlaceholderScope(
BoundValuePlaceholderBase
placeholder, uint valEscapeScope)
201
_placeholderScopes ??= new Dictionary<
BoundValuePlaceholderBase
, uint>();
206
private void RemovePlaceholderScope(
BoundValuePlaceholderBase
placeholder)
216
private uint GetPlaceholderScope(
BoundValuePlaceholderBase
placeholder)
226
private bool ContainsPlaceholderScope(
BoundValuePlaceholderBase
placeholder)
279
if (node is
BoundValuePlaceholderBase
placeholder)
295
if (expr is
BoundValuePlaceholderBase
placeholder)
354
var placeholders = ArrayBuilder<(
BoundValuePlaceholderBase
, uint)>.GetInstance();
371
var placeholders = ArrayBuilder<(
BoundValuePlaceholderBase
, uint)>.GetInstance();
652
var placeholders = ArrayBuilder<(
BoundValuePlaceholderBase
, uint)>.GetInstance();
683
ArrayBuilder<(
BoundValuePlaceholderBase
, uint)> placeholders,
892
var placeholders = ArrayBuilder<(
BoundValuePlaceholderBase
, uint)>.GetInstance();
899
private void GetAwaitableInstancePlaceholders(ArrayBuilder<(
BoundValuePlaceholderBase
, uint)> placeholders, BoundAwaitableInfo awaitableInfo, uint valEscapeScope)
953
var placeholders = ArrayBuilder<(
BoundValuePlaceholderBase
, uint)>.GetInstance();
1089
var placeholders = ArrayBuilder<(
BoundValuePlaceholderBase
, uint)>.GetInstance();
FlowAnalysis\NullableWalker.cs (7)
233
private PooledDictionary<
BoundValuePlaceholderBase
, (BoundExpression? Replacement, VisitResult Result)>? _resultForPlaceholdersOpt;
535
private void AddPlaceholderReplacement(
BoundValuePlaceholderBase
placeholder, BoundExpression? expression, VisitResult result)
542
_resultForPlaceholdersOpt ??= PooledDictionary<
BoundValuePlaceholderBase
, (BoundExpression? Replacement, VisitResult Result)>.GetInstance();
546
private void RemovePlaceholderReplacement(
BoundValuePlaceholderBase
placeholder)
554
private static void AssertPlaceholderAllowedWithoutRegistration(
BoundValuePlaceholderBase
placeholder)
5290
if (expression is
BoundValuePlaceholderBase
placeholder)
11893
private void VisitPlaceholderWithReplacement(
BoundValuePlaceholderBase
node)
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (2)
62
private readonly Dictionary<
BoundValuePlaceholderBase
, BoundExpression> _placeholderMap;
95
_placeholderMap = new Dictionary<
BoundValuePlaceholderBase
, BoundExpression>();
Lowering\LocalRewriter\LocalRewriter.cs (7)
53
private Dictionary<
BoundValuePlaceholderBase
, BoundExpression>? _placeholderReplacementMapDoNotUseDirectly;
501
private BoundExpression PlaceholderReplacement(
BoundValuePlaceholderBase
placeholder)
510
private static void AssertPlaceholderReplacement(
BoundValuePlaceholderBase
placeholder, BoundExpression value)
531
private void AddPlaceholderReplacement(
BoundValuePlaceholderBase
placeholder, BoundExpression value)
537
_placeholderReplacementMapDoNotUseDirectly = new Dictionary<
BoundValuePlaceholderBase
, BoundExpression>();
547
private void RemovePlaceholderReplacement(
BoundValuePlaceholderBase
placeholder)
1120
Debug.Assert(expr is not
BoundValuePlaceholderBase
, $"Placeholder kind {expr.Kind} must be handled explicitly");
Lowering\MethodToClassRewriter.cs (2)
54
private readonly Dictionary<
BoundValuePlaceholderBase
, BoundExpression> _placeholderMap;
65
this._placeholderMap = new Dictionary<
BoundValuePlaceholderBase
, BoundExpression>();