1 write to _factory
Microsoft.CodeAnalysis.CSharp (1)
Lowering\AsyncRewriter\RuntimeAsyncRewriter.cs (1)
83
_factory
= factory;
28 references to _factory
Microsoft.CodeAnalysis.CSharp (28)
Lowering\AsyncRewriter\RuntimeAsyncRewriter.cs (28)
54
Debug.Assert(rewriter.
_factory
.CurrentFunction is not null);
55
var thisParameter = rewriter.
_factory
.CurrentFunction.ThisParameter;
63
var hoistedThis = rewriter.
_factory
.StoreToTemp(rewriter.
_factory
.This(), out BoundAssignmentOperator store, kind: SynthesizedLocalKind.AwaitByRefSpill);
86
_refInitializationHoister = new RefInitializationHoister<LocalSymbol, BoundLocal>(
_factory
,
_factory
.CurrentFunction, TypeMap.Empty);
94
var oldSyntax =
_factory
.Syntax;
95
_factory
.Syntax = node.Syntax;
97
_factory
.Syntax = oldSyntax;
118
Debug.Assert(
_factory
.CurrentFunction is not null);
120
_factory
.Diagnostics.Add(ErrorCode.ERR_UnsupportedFeatureInRuntimeAsync,
122
_factory
.CurrentFunction);
133
_factory
.Compilation.GetSpecialType(InternalSpecialType.System_Runtime_CompilerServices_AsyncHelpers)));
180
var tmp =
_factory
.StoreToTemp(getAwaiter, out BoundAssignmentOperator store, kind: SynthesizedLocalKind.Awaiter);
186
var isCompletedCall =
_factory
.Call(tmp, isCompletedMethod);
196
var ifNotCompleted =
_factory
.If(
_factory
.Not(isCompletedCall),
_factory
.ExpressionStatement(awaitCall));
201
var getResultCall =
_factory
.Call(tmp, getResultMethod);
204
return
_factory
.SpillSequence(
206
sideEffects: [
_factory
.ExpressionStatement(store), ifNotCompleted],
248
var assignment =
_factory
.AssignmentExpression(leftLocal, visitedLeftOrProxy, isRef: true);
249
return
_factory
.Sequence([assignment], node.Update(leftLocal, visitedRight, node.IsRef, node.Type));
256
var hoistedLocal = @this.
_factory
.SynthesizedLocal(type, syntax: local.GetDeclaratorSyntax(), kind: SynthesizedLocalKind.AwaitByRefSpill);
262
=> @this.
_factory
.Local(local);
304
Debug.Assert(
_factory
.CurrentFunction is not null);
305
var thisParameter = this.
_factory
.CurrentFunction.ThisParameter;
322
return
_factory
.StatementList();