7 instantiations of BoundAwaitableValuePlaceholder
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder_Await.cs (3)
32
var placeholder = new
BoundAwaitableValuePlaceholder
(expression.Syntax, expression.Type);
360
placeholder = new
BoundAwaitableValuePlaceholder
(expression.Syntax, expression.Type);
508
placeholder = new
BoundAwaitableValuePlaceholder
(syntax, awaiterType);
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();
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,
265
out
BoundAwaitableValuePlaceholder
? runtimeAsyncAwaitCallPlaceholder,
311
bool tryGetRuntimeAwaitHelper(BoundExpression expression, out
BoundAwaitableValuePlaceholder
? placeholder, out BoundCall? runtimeAwaitCall, BindingDiagnosticBag diagnostics)
475
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)
11881
if (awaitOpt is { AwaitableInstancePlaceholder:
BoundAwaitableValuePlaceholder
moveNextPlaceholder } awaitMoveNextInfo)
11894
var
disposalPlaceholder = awaitDisposalInfo.AwaitableInstancePlaceholder;
12389
var
placeholder = awaitableInfo.AwaitableInstancePlaceholder;
13033
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)
8889
return VisitAwaitableValuePlaceholder((
BoundAwaitableValuePlaceholder
)node, arg);
9352
public virtual R VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node, A arg) => this.DefaultVisit(node, arg);
9588
public virtual BoundNode? VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node) => this.DefaultVisit(node);
9844
public override BoundNode? VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node) => null;
10889
public override BoundNode? VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node)
11187
BoundAwaitableValuePlaceholder
? awaitableInstancePlaceholder = (
BoundAwaitableValuePlaceholder
?)this.Visit(node.AwaitableInstancePlaceholder);
11190
BoundAwaitableValuePlaceholder
? runtimeAsyncAwaitCallPlaceholder = (
BoundAwaitableValuePlaceholder
?)this.Visit(node.RuntimeAsyncAwaitCallPlaceholder);
12503
public override BoundNode? VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node)
12510
BoundAwaitableValuePlaceholder
updatedNode = node.Update(infoAndType.Type);
13125
BoundAwaitableValuePlaceholder
? awaitableInstancePlaceholder = (
BoundAwaitableValuePlaceholder
?)this.Visit(node.AwaitableInstancePlaceholder);
13128
BoundAwaitableValuePlaceholder
? runtimeAsyncAwaitCallPlaceholder = (
BoundAwaitableValuePlaceholder
?)this.Visit(node.RuntimeAsyncAwaitCallPlaceholder);
15205
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)