5 instantiations of BoundAwaitableValuePlaceholder
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Await.cs (3)
32
var placeholder = new
BoundAwaitableValuePlaceholder
(expression.Syntax, expression.Type);
359
placeholder = new
BoundAwaitableValuePlaceholder
(expression.Syntax, expression.Type);
507
placeholder = new
BoundAwaitableValuePlaceholder
(syntax, awaiterType);
Binder\UsingStatementBinder.cs (1)
158
var placeholder = new
BoundAwaitableValuePlaceholder
(syntax, awaitableTypeOpt).MakeCompilerGenerated();
Generated\BoundNodes.xml.Generated.cs (1)
606
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,
264
out
BoundAwaitableValuePlaceholder
? runtimeAsyncAwaitCallPlaceholder,
310
bool tryGetRuntimeAwaitHelper(BoundExpression expression, out
BoundAwaitableValuePlaceholder
? placeholder, out BoundCall? runtimeAwaitCall, BindingDiagnosticBag diagnostics)
474
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());
618
var
placeholder = new BoundAwaitableValuePlaceholder(expr, awaitableType);
Binder\UsingStatementBinder.cs (1)
158
var
placeholder = new BoundAwaitableValuePlaceholder(syntax, awaitableTypeOpt).MakeCompilerGenerated();
FlowAnalysis\AbstractFlowPass.cs (1)
3701
public override BoundNode VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node)
FlowAnalysis\NullableWalker.cs (4)
11744
if (awaitOpt is { AwaitableInstancePlaceholder:
BoundAwaitableValuePlaceholder
moveNextPlaceholder } awaitMoveNextInfo)
11757
var
disposalPlaceholder = awaitDisposalInfo.AwaitableInstancePlaceholder;
12245
var
placeholder = awaitableInfo.AwaitableInstancePlaceholder;
12889
public override BoundNode? VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node)
Generated\BoundNodes.xml.Generated.cs (24)
602
public
BoundAwaitableValuePlaceholder
Update(TypeSymbol? type)
606
var
result = new BoundAwaitableValuePlaceholder(this.Syntax, type, this.HasErrors);
2130
public BoundAwaitableInfo(SyntaxNode syntax,
BoundAwaitableValuePlaceholder
? awaitableInstancePlaceholder, bool isDynamic, BoundExpression? getAwaiter, PropertySymbol? isCompleted, MethodSymbol? getResult, BoundCall? runtimeAsyncAwaitCall,
BoundAwaitableValuePlaceholder
? runtimeAsyncAwaitCallPlaceholder, bool hasErrors = false)
2146
public
BoundAwaitableValuePlaceholder
? AwaitableInstancePlaceholder { get; }
2152
public
BoundAwaitableValuePlaceholder
? RuntimeAsyncAwaitCallPlaceholder { get; }
2157
public BoundAwaitableInfo Update(
BoundAwaitableValuePlaceholder
? awaitableInstancePlaceholder, bool isDynamic, BoundExpression? getAwaiter, PropertySymbol? isCompleted, MethodSymbol? getResult, BoundCall? runtimeAsyncAwaitCall,
BoundAwaitableValuePlaceholder
? runtimeAsyncAwaitCallPlaceholder)
8885
return VisitAwaitableValuePlaceholder((
BoundAwaitableValuePlaceholder
)node, arg);
9348
public virtual R VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node, A arg) => this.DefaultVisit(node, arg);
9584
public virtual BoundNode? VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node) => this.DefaultVisit(node);
9840
public override BoundNode? VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node) => null;
10885
public override BoundNode? VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node)
11183
BoundAwaitableValuePlaceholder
? awaitableInstancePlaceholder = (
BoundAwaitableValuePlaceholder
?)this.Visit(node.AwaitableInstancePlaceholder);
11186
BoundAwaitableValuePlaceholder
? runtimeAsyncAwaitCallPlaceholder = (
BoundAwaitableValuePlaceholder
?)this.Visit(node.RuntimeAsyncAwaitCallPlaceholder);
12499
public override BoundNode? VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node)
12506
BoundAwaitableValuePlaceholder
updatedNode = node.Update(infoAndType.Type);
13121
BoundAwaitableValuePlaceholder
? awaitableInstancePlaceholder = (
BoundAwaitableValuePlaceholder
?)this.Visit(node.AwaitableInstancePlaceholder);
13124
BoundAwaitableValuePlaceholder
? runtimeAsyncAwaitCallPlaceholder = (
BoundAwaitableValuePlaceholder
?)this.Visit(node.RuntimeAsyncAwaitCallPlaceholder);
15201
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)
43
private readonly Dictionary<
BoundAwaitableValuePlaceholder
, BoundExpression> _placeholderMap;
114
var
awaitablePlaceholder = awaitableInfo.AwaitableInstancePlaceholder;
160
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)