7 instantiations of BoundAwaitableValuePlaceholder
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder_Await.cs (3)
32
var placeholder = new
BoundAwaitableValuePlaceholder
(expression.Syntax, expression.Type);
372
placeholder = new
BoundAwaitableValuePlaceholder
(expression.Syntax, expression.Type);
520
placeholder = new
BoundAwaitableValuePlaceholder
(syntax, awaiterType);
Binder\ForEachLoopBinder.cs (2)
263
var placeholder = new
BoundAwaitableValuePlaceholder
(expr, builder.MoveNextInfo?.Method.ReturnType ?? CreateErrorType());
621
var placeholder = new
BoundAwaitableValuePlaceholder
(expr, awaitableType);
Binder\UsingStatementBinder.cs (1)
158
var placeholder = new
BoundAwaitableValuePlaceholder
(syntax, awaitableTypeOpt).MakeCompilerGenerated();
Generated\BoundNodes.xml.Generated.cs (1)
604
var result = new
BoundAwaitableValuePlaceholder
(this.Syntax, type, this.HasErrors);
48 references to BoundAwaitableValuePlaceholder
Microsoft.CodeAnalysis.CSharp (48)
Binder\Binder_Await.cs (6)
32
var
placeholder = new BoundAwaitableValuePlaceholder(expression.Syntax, expression.Type);
52
internal BoundAwaitableInfo BindAwaitInfo(
BoundAwaitableValuePlaceholder
getAwaiterPlaceholder, SyntaxNode node, BindingDiagnosticBag diagnostics, ref bool hasErrors, BoundExpression? expressionOpt = null)
63
out
BoundAwaitableValuePlaceholder
? runtimeAsyncAwaitPlaceholder,
277
out
BoundAwaitableValuePlaceholder
? runtimeAsyncAwaitCallPlaceholder,
323
bool tryGetRuntimeAwaitHelper(BoundExpression expression, out
BoundAwaitableValuePlaceholder
? placeholder, out BoundCall? runtimeAwaitCall, BindingDiagnosticBag diagnostics)
487
bool getRuntimeAwaitAwaiter(TypeSymbol awaiterType, out BoundCall? runtimeAwaitAwaiterCall, out
BoundAwaitableValuePlaceholder
? placeholder, SyntaxNode syntax, BindingDiagnosticBag diagnostics)
Binder\ForEachLoopBinder.cs (2)
263
var
placeholder = new BoundAwaitableValuePlaceholder(expr, builder.MoveNextInfo?.Method.ReturnType ?? CreateErrorType());
621
var
placeholder = new BoundAwaitableValuePlaceholder(expr, awaitableType);
Binder\UsingStatementBinder.cs (1)
158
var
placeholder = new BoundAwaitableValuePlaceholder(syntax, awaitableTypeOpt).MakeCompilerGenerated();
FlowAnalysis\AbstractFlowPass.cs (1)
3700
public override BoundNode VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node)
FlowAnalysis\NullableWalker.cs (4)
11875
if (enumeratorInfoOpt is { MoveNextAwaitableInfo: { AwaitableInstancePlaceholder:
BoundAwaitableValuePlaceholder
moveNextPlaceholder } awaitMoveNextInfo })
11888
var
disposalPlaceholder = awaitDisposalInfo.AwaitableInstancePlaceholder;
12383
var
placeholder = awaitableInfo.AwaitableInstancePlaceholder;
13029
public override BoundNode? VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node)
Generated\BoundNodes.xml.Generated.cs (24)
600
public
BoundAwaitableValuePlaceholder
Update(TypeSymbol? type)
604
var
result = new BoundAwaitableValuePlaceholder(this.Syntax, type, this.HasErrors);
2147
public BoundAwaitableInfo(SyntaxNode syntax,
BoundAwaitableValuePlaceholder
? awaitableInstancePlaceholder, bool isDynamic, BoundExpression? getAwaiter, PropertySymbol? isCompleted, MethodSymbol? getResult, BoundCall? runtimeAsyncAwaitCall,
BoundAwaitableValuePlaceholder
? runtimeAsyncAwaitCallPlaceholder, bool hasErrors = false)
2163
public
BoundAwaitableValuePlaceholder
? AwaitableInstancePlaceholder { get; }
2169
public
BoundAwaitableValuePlaceholder
? RuntimeAsyncAwaitCallPlaceholder { get; }
2174
public BoundAwaitableInfo Update(
BoundAwaitableValuePlaceholder
? awaitableInstancePlaceholder, bool isDynamic, BoundExpression? getAwaiter, PropertySymbol? isCompleted, MethodSymbol? getResult, BoundCall? runtimeAsyncAwaitCall,
BoundAwaitableValuePlaceholder
? runtimeAsyncAwaitCallPlaceholder)
8916
return VisitAwaitableValuePlaceholder((
BoundAwaitableValuePlaceholder
)node, arg);
9379
public virtual R VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node, A arg) => this.DefaultVisit(node, arg);
9615
public virtual BoundNode? VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node) => this.DefaultVisit(node);
9871
public override BoundNode? VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node) => null;
10915
public override BoundNode? VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node)
11214
BoundAwaitableValuePlaceholder
? awaitableInstancePlaceholder = (
BoundAwaitableValuePlaceholder
?)this.Visit(node.AwaitableInstancePlaceholder);
11217
BoundAwaitableValuePlaceholder
? runtimeAsyncAwaitCallPlaceholder = (
BoundAwaitableValuePlaceholder
?)this.Visit(node.RuntimeAsyncAwaitCallPlaceholder);
12529
public override BoundNode? VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node)
12536
BoundAwaitableValuePlaceholder
updatedNode = node.Update(infoAndType.Type);
13156
BoundAwaitableValuePlaceholder
? awaitableInstancePlaceholder = (
BoundAwaitableValuePlaceholder
?)this.Visit(node.AwaitableInstancePlaceholder);
13159
BoundAwaitableValuePlaceholder
? runtimeAsyncAwaitCallPlaceholder = (
BoundAwaitableValuePlaceholder
?)this.Visit(node.RuntimeAsyncAwaitCallPlaceholder);
15225
public override TreeDumperNode VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node, object? arg) => new TreeDumperNode("awaitableValuePlaceholder", null, new TreeDumperNode[]
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (2)
354
var
awaitablePlaceholder = node.AwaitableInfo.AwaitableInstancePlaceholder;
415
public override BoundNode VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node)
Lowering\AsyncRewriter\RuntimeAsyncRewriter.cs (3)
74
private readonly Dictionary<
BoundAwaitableValuePlaceholder
, BoundExpression> _placeholderMap;
164
var
awaitablePlaceholder = awaitableInfo.AwaitableInstancePlaceholder;
210
public override BoundNode VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node)
Lowering\BoundTreeToDifferentEnclosingContextRewriter.cs (5)
122
var
awaitablePlaceholder = node.AwaitableInstancePlaceholder;
128
var
rewrittenPlaceholder = awaitablePlaceholder.Update(VisitType(awaitablePlaceholder.Type));
138
var
runtimeAsyncAwaitCallPlaceholder = node.RuntimeAsyncAwaitCallPlaceholder;
139
var
rewrittenRuntimeAsyncAwaitCallPlaceholder = runtimeAsyncAwaitCallPlaceholder;
155
public override BoundNode VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node)