3 instantiations of BoundAwaitableValuePlaceholder
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Await.cs (1)
31
var placeholder = new
BoundAwaitableValuePlaceholder
(expression.Syntax, expression.Type);
Binder\UsingStatementBinder.cs (1)
158
var placeholder = new
BoundAwaitableValuePlaceholder
(syntax, awaitableTypeOpt).MakeCompilerGenerated();
Generated\BoundNodes.xml.Generated.cs (1)
625
var result = new
BoundAwaitableValuePlaceholder
(this.Syntax, type, this.HasErrors);
32 references to BoundAwaitableValuePlaceholder
Microsoft.CodeAnalysis.CSharp (32)
Binder\Binder_Await.cs (2)
31
var
placeholder = new BoundAwaitableValuePlaceholder(expression.Syntax, expression.Type);
51
internal BoundAwaitableInfo BindAwaitInfo(
BoundAwaitableValuePlaceholder
placeholder, SyntaxNode node, BindingDiagnosticBag diagnostics, ref bool hasErrors, BoundExpression? expressionOpt = null)
Binder\ForEachLoopBinder.cs (2)
255
var
placeholder = new BoundAwaitableValuePlaceholder(expr, builder.MoveNextInfo?.Method.ReturnType ?? CreateErrorType());
603
var
placeholder = new BoundAwaitableValuePlaceholder(expr, awaitableType);
Binder\UsingStatementBinder.cs (1)
158
var
placeholder = new BoundAwaitableValuePlaceholder(syntax, awaitableTypeOpt).MakeCompilerGenerated();
FlowAnalysis\AbstractFlowPass.cs (1)
3668
public override BoundNode VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node)
FlowAnalysis\NullableWalker.cs (4)
11089
if (awaitOpt is { AwaitableInstancePlaceholder:
BoundAwaitableValuePlaceholder
moveNextPlaceholder } awaitMoveNextInfo)
11102
var
disposalPlaceholder = awaitDisposalInfo.AwaitableInstancePlaceholder;
11486
var
placeholder = awaitableInfo.AwaitableInstancePlaceholder;
12130
public override BoundNode? VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node)
Generated\BoundNodes.xml.Generated.cs (17)
621
public
BoundAwaitableValuePlaceholder
Update(TypeSymbol? type)
625
var
result = new BoundAwaitableValuePlaceholder(this.Syntax, type, this.HasErrors);
2141
public BoundAwaitableInfo(SyntaxNode syntax,
BoundAwaitableValuePlaceholder
? awaitableInstancePlaceholder, bool isDynamic, BoundExpression? getAwaiter, PropertySymbol? isCompleted, MethodSymbol? getResult, bool hasErrors = false)
2151
public
BoundAwaitableValuePlaceholder
? AwaitableInstancePlaceholder { get; }
2160
public BoundAwaitableInfo Update(
BoundAwaitableValuePlaceholder
? awaitableInstancePlaceholder, bool isDynamic, BoundExpression? getAwaiter, PropertySymbol? isCompleted, MethodSymbol? getResult)
8886
return VisitAwaitableValuePlaceholder((
BoundAwaitableValuePlaceholder
)node, arg);
9349
public virtual R VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node, A arg) => this.DefaultVisit(node, arg);
9585
public virtual BoundNode? VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node) => this.DefaultVisit(node);
9841
public override BoundNode? VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node) => null;
10877
public override BoundNode? VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node)
11154
BoundAwaitableValuePlaceholder
? awaitableInstancePlaceholder = (
BoundAwaitableValuePlaceholder
?)this.Visit(node.AwaitableInstancePlaceholder);
12347
public override BoundNode? VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node)
12354
BoundAwaitableValuePlaceholder
updatedNode = node.Update(infoAndType.Type);
12992
BoundAwaitableValuePlaceholder
? awaitableInstancePlaceholder = (
BoundAwaitableValuePlaceholder
?)this.Visit(node.AwaitableInstancePlaceholder);
15063
public override TreeDumperNode VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node, object? arg) => new TreeDumperNode("awaitableValuePlaceholder", null, new TreeDumperNode[]
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (2)
348
var
awaitablePlaceholder = node.AwaitableInfo.AwaitableInstancePlaceholder;
409
public override BoundNode VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node)
Lowering\MethodToClassRewriter.cs (3)
457
var
awaitablePlaceholder = node.AwaitableInstancePlaceholder;
463
var
rewrittenPlaceholder = awaitablePlaceholder.Update(VisitType(awaitablePlaceholder.Type));
475
public override BoundNode VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node)