12 types derived from BoundValuePlaceholderBase
Microsoft.CodeAnalysis.CSharp (12)
Generated\BoundNodes.xml.Generated.cs (12)
443
internal abstract partial class BoundEarlyValuePlaceholderBase :
BoundValuePlaceholderBase
457
internal sealed partial class BoundValuePlaceholder :
BoundValuePlaceholderBase
485
internal sealed partial class BoundCapturedReceiverPlaceholder :
BoundValuePlaceholderBase
515
internal sealed partial class BoundDeconstructValuePlaceholder :
BoundValuePlaceholderBase
556
internal sealed partial class BoundTupleOperandPlaceholder :
BoundValuePlaceholderBase
591
internal sealed partial class BoundAwaitableValuePlaceholder :
BoundValuePlaceholderBase
620
internal sealed partial class BoundDisposableValuePlaceholder :
BoundValuePlaceholderBase
655
internal sealed partial class BoundObjectOrCollectionValuePlaceholder :
BoundValuePlaceholderBase
693
internal sealed partial class BoundImplicitIndexerValuePlaceholder :
BoundValuePlaceholderBase
728
internal sealed partial class BoundImplicitIndexerReceiverPlaceholder :
BoundValuePlaceholderBase
7526
internal sealed partial class BoundInterpolatedStringHandlerPlaceholder :
BoundValuePlaceholderBase
7554
internal sealed partial class BoundInterpolatedStringArgumentPlaceholder :
BoundValuePlaceholderBase
39 references to BoundValuePlaceholderBase
Microsoft.CodeAnalysis.CSharp (39)
Binder\Binder.ValueChecks.cs (4)
760
Debug.Assert(expr is not
BoundValuePlaceholderBase
, $"Placeholder kind {expr.Kind} should be explicitly handled");
2078
if (receiver is not
BoundValuePlaceholderBase
&& method is not null && receiver.Type?.IsValueType == true)
3530
return GetPlaceholderScope((
BoundValuePlaceholderBase
)expr);
3932
if (GetPlaceholderScope((
BoundValuePlaceholderBase
)expr) > escapeTo)
Binder\Binder_Expressions.cs (1)
8774
BoundValuePlaceholderBase
receiverPlaceholder,
Binder\RefSafetyAnalysis.cs (16)
83
private Dictionary<
BoundValuePlaceholderBase
, uint>? _placeholderScopes;
171
private readonly ArrayBuilder<(
BoundValuePlaceholderBase
, uint)> _placeholders;
173
public PlaceholderRegion(RefSafetyAnalysis analysis, ArrayBuilder<(
BoundValuePlaceholderBase
, uint)> placeholders)
205
private void AddPlaceholderScope(
BoundValuePlaceholderBase
placeholder, uint valEscapeScope)
207
_placeholderScopes ??= new Dictionary<
BoundValuePlaceholderBase
, uint>();
212
private void RemovePlaceholderScope(
BoundValuePlaceholderBase
placeholder)
221
private uint GetPlaceholderScope(
BoundValuePlaceholderBase
placeholder)
237
if (node is
BoundValuePlaceholderBase
placeholder
301
var placeholders = ArrayBuilder<(
BoundValuePlaceholderBase
, uint)>.GetInstance();
316
var placeholders = ArrayBuilder<(
BoundValuePlaceholderBase
, uint)>.GetInstance();
569
var placeholders = ArrayBuilder<(
BoundValuePlaceholderBase
, uint)>.GetInstance();
605
ArrayBuilder<(
BoundValuePlaceholderBase
, uint)> placeholders,
706
var placeholders = ArrayBuilder<(
BoundValuePlaceholderBase
, uint)>.GetInstance();
713
private void GetAwaitableInstancePlaceholders(ArrayBuilder<(
BoundValuePlaceholderBase
, uint)> placeholders, BoundAwaitableInfo awaitableInfo, uint valEscapeScope)
758
var placeholders = ArrayBuilder<(
BoundValuePlaceholderBase
, uint)>.GetInstance();
864
var placeholders = ArrayBuilder<(
BoundValuePlaceholderBase
, uint)>.GetInstance();
FlowAnalysis\NullableWalker.cs (7)
210
private PooledDictionary<
BoundValuePlaceholderBase
, (BoundExpression? Replacement, VisitResult Result)>? _resultForPlaceholdersOpt;
502
private void AddPlaceholderReplacement(
BoundValuePlaceholderBase
placeholder, BoundExpression? expression, VisitResult result)
509
_resultForPlaceholdersOpt ??= PooledDictionary<
BoundValuePlaceholderBase
, (BoundExpression? Replacement, VisitResult Result)>.GetInstance();
513
private void RemovePlaceholderReplacement(
BoundValuePlaceholderBase
placeholder)
521
private static void AssertPlaceholderAllowedWithoutRegistration(
BoundValuePlaceholderBase
placeholder)
4960
if (expression is
BoundValuePlaceholderBase
placeholder)
11161
private void VisitPlaceholderWithReplacement(
BoundValuePlaceholderBase
node)
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (2)
63
private readonly Dictionary<
BoundValuePlaceholderBase
, BoundExpression> _placeholderMap;
96
_placeholderMap = new Dictionary<
BoundValuePlaceholderBase
, BoundExpression>();
Lowering\LocalRewriter\LocalRewriter.cs (7)
46
private Dictionary<
BoundValuePlaceholderBase
, BoundExpression>? _placeholderReplacementMapDoNotUseDirectly;
431
private BoundExpression PlaceholderReplacement(
BoundValuePlaceholderBase
placeholder)
440
private static void AssertPlaceholderReplacement(
BoundValuePlaceholderBase
placeholder, BoundExpression value)
461
private void AddPlaceholderReplacement(
BoundValuePlaceholderBase
placeholder, BoundExpression value)
467
_placeholderReplacementMapDoNotUseDirectly = new Dictionary<
BoundValuePlaceholderBase
, BoundExpression>();
477
private void RemovePlaceholderReplacement(
BoundValuePlaceholderBase
placeholder)
990
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>();