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)
624
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)
3664
public override BoundNode VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node)
FlowAnalysis\NullableWalker.cs (4)
11031
if (awaitOpt is { AwaitableInstancePlaceholder:
BoundAwaitableValuePlaceholder
moveNextPlaceholder } awaitMoveNextInfo)
11044
var
disposalPlaceholder = awaitDisposalInfo.AwaitableInstancePlaceholder;
11428
var
placeholder = awaitableInfo.AwaitableInstancePlaceholder;
12072
public override BoundNode? VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node)
Generated\BoundNodes.xml.Generated.cs (17)
620
public
BoundAwaitableValuePlaceholder
Update(TypeSymbol? type)
624
var
result = new BoundAwaitableValuePlaceholder(this.Syntax, type, this.HasErrors);
2140
public BoundAwaitableInfo(SyntaxNode syntax,
BoundAwaitableValuePlaceholder
? awaitableInstancePlaceholder, bool isDynamic, BoundExpression? getAwaiter, PropertySymbol? isCompleted, MethodSymbol? getResult, bool hasErrors = false)
2150
public
BoundAwaitableValuePlaceholder
? AwaitableInstancePlaceholder { get; }
2159
public BoundAwaitableInfo Update(
BoundAwaitableValuePlaceholder
? awaitableInstancePlaceholder, bool isDynamic, BoundExpression? getAwaiter, PropertySymbol? isCompleted, MethodSymbol? getResult)
8849
return VisitAwaitableValuePlaceholder((
BoundAwaitableValuePlaceholder
)node, arg);
9312
public virtual R VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node, A arg) => this.DefaultVisit(node, arg);
9548
public virtual BoundNode? VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node) => this.DefaultVisit(node);
9804
public override BoundNode? VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node) => null;
10840
public override BoundNode? VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node)
11117
BoundAwaitableValuePlaceholder
? awaitableInstancePlaceholder = (
BoundAwaitableValuePlaceholder
?)this.Visit(node.AwaitableInstancePlaceholder);
12310
public override BoundNode? VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node)
12317
BoundAwaitableValuePlaceholder
updatedNode = node.Update(infoAndType.Type);
12955
BoundAwaitableValuePlaceholder
? awaitableInstancePlaceholder = (
BoundAwaitableValuePlaceholder
?)this.Visit(node.AwaitableInstancePlaceholder);
15026
public override TreeDumperNode VisitAwaitableValuePlaceholder(
BoundAwaitableValuePlaceholder
node, object? arg) => new TreeDumperNode("awaitableValuePlaceholder", null, new TreeDumperNode[]
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (2)
339
var
awaitablePlaceholder = node.AwaitableInfo.AwaitableInstancePlaceholder;
395
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)