13 types derived from BoundValuePlaceholderBase
Microsoft.CodeAnalysis.CSharp (13)
Generated\BoundNodes.xml.Generated.cs (13)
456
internal abstract partial class BoundEarlyValuePlaceholderBase :
BoundValuePlaceholderBase
470
internal sealed partial class BoundValuePlaceholder :
BoundValuePlaceholderBase
498
internal sealed partial class BoundCapturedReceiverPlaceholder :
BoundValuePlaceholderBase
528
internal sealed partial class BoundDeconstructValuePlaceholder :
BoundValuePlaceholderBase
569
internal sealed partial class BoundTupleOperandPlaceholder :
BoundValuePlaceholderBase
604
internal sealed partial class BoundAwaitableValuePlaceholder :
BoundValuePlaceholderBase
633
internal sealed partial class BoundDisposableValuePlaceholder :
BoundValuePlaceholderBase
668
internal sealed partial class BoundObjectOrCollectionValuePlaceholder :
BoundValuePlaceholderBase
706
internal sealed partial class BoundImplicitIndexerValuePlaceholder :
BoundValuePlaceholderBase
741
internal sealed partial class BoundImplicitIndexerReceiverPlaceholder :
BoundValuePlaceholderBase
6475
internal sealed partial class BoundCollectionExpressionSpreadExpressionPlaceholder :
BoundValuePlaceholderBase
7843
internal sealed partial class BoundInterpolatedStringHandlerPlaceholder :
BoundValuePlaceholderBase
7871
internal sealed partial class BoundInterpolatedStringArgumentPlaceholder :
BoundValuePlaceholderBase
42 references to BoundValuePlaceholderBase
Microsoft.CodeAnalysis.CSharp (42)
Binder\Binder.ValueChecks.cs (4)
976
RoslynDebug.Assert(expr is not
BoundValuePlaceholderBase
, $"Placeholder kind {expr.Kind} should be explicitly handled");
2388
Debug.Assert(receiver is not
BoundValuePlaceholderBase
&& method is not null && receiver.Type?.IsReferenceType == false);
4187
return GetPlaceholderScope((
BoundValuePlaceholderBase
)expr);
4879
if (!GetPlaceholderScope((
BoundValuePlaceholderBase
)expr).IsConvertibleTo(escapeTo))
Binder\Binder_Expressions.cs (1)
10521
BoundValuePlaceholderBase
receiverPlaceholder,
Binder\Binder_Invocation.cs (1)
1392
if (receiver is
BoundValuePlaceholderBase
|| receiver?.Type is null or { IsReferenceType: true })
Binder\RefSafetyAnalysis.cs (18)
64
private Dictionary<
BoundValuePlaceholderBase
, SafeContext>? _placeholderScopes;
154
private readonly ArrayBuilder<(
BoundValuePlaceholderBase
, SafeContext)> _placeholders;
156
public PlaceholderRegion(RefSafetyAnalysis analysis, ArrayBuilder<(
BoundValuePlaceholderBase
, SafeContext)> placeholders)
192
private void AddPlaceholderScope(
BoundValuePlaceholderBase
placeholder, SafeContext valEscapeScope)
199
_placeholderScopes ??= new Dictionary<
BoundValuePlaceholderBase
, SafeContext>();
204
private void RemovePlaceholderScope(
BoundValuePlaceholderBase
placeholder)
214
private SafeContext GetPlaceholderScope(
BoundValuePlaceholderBase
placeholder)
224
private bool ContainsPlaceholderScope(
BoundValuePlaceholderBase
placeholder)
277
if (node is
BoundValuePlaceholderBase
placeholder)
293
if (expr is
BoundValuePlaceholderBase
placeholder)
346
var placeholders = ArrayBuilder<(
BoundValuePlaceholderBase
, SafeContext)>.GetInstance();
363
var placeholders = ArrayBuilder<(
BoundValuePlaceholderBase
, SafeContext)>.GetInstance();
668
var placeholders = ArrayBuilder<(
BoundValuePlaceholderBase
, SafeContext)>.GetInstance();
699
ArrayBuilder<(
BoundValuePlaceholderBase
, SafeContext)> placeholders,
909
var placeholders = ArrayBuilder<(
BoundValuePlaceholderBase
, SafeContext)>.GetInstance();
916
private void GetAwaitableInstancePlaceholders(ArrayBuilder<(
BoundValuePlaceholderBase
, SafeContext)> placeholders, BoundAwaitableInfo awaitableInfo, SafeContext valEscapeScope)
970
var placeholders = ArrayBuilder<(
BoundValuePlaceholderBase
, SafeContext)>.GetInstance();
1106
var placeholders = ArrayBuilder<(
BoundValuePlaceholderBase
, SafeContext)>.GetInstance();
FlowAnalysis\NullableWalker.cs (7)
239
private PooledDictionary<
BoundValuePlaceholderBase
, (BoundExpression? Replacement, VisitResult Result)>? _resultForPlaceholdersOpt;
544
private void AddPlaceholderReplacement(
BoundValuePlaceholderBase
placeholder, BoundExpression? expression, VisitResult result)
551
_resultForPlaceholdersOpt ??= PooledDictionary<
BoundValuePlaceholderBase
, (BoundExpression? Replacement, VisitResult Result)>.GetInstance();
555
private void RemovePlaceholderReplacement(
BoundValuePlaceholderBase
placeholder)
563
private static void AssertPlaceholderAllowedWithoutRegistration(
BoundValuePlaceholderBase
placeholder)
5553
if (expression is
BoundValuePlaceholderBase
placeholder)
12258
private void VisitPlaceholderWithReplacement(
BoundValuePlaceholderBase
node)
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (2)
64
private readonly Dictionary<
BoundValuePlaceholderBase
, BoundExpression> _placeholderMap;
98
_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
RoslynDebug.Assert(expr is not
BoundValuePlaceholderBase
, $"Placeholder kind {expr.Kind} must be handled explicitly");
Lowering\MethodToClassRewriter.cs (2)
38
private readonly Dictionary<
BoundValuePlaceholderBase
, BoundExpression> _placeholderMap;
49
this._placeholderMap = new Dictionary<
BoundValuePlaceholderBase
, BoundExpression>();