1 write to stateMachineType
Microsoft.CodeAnalysis.CSharp (1)
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
56
this.
stateMachineType
= stateMachineType;
18 references to stateMachineType
Microsoft.CodeAnalysis.CSharp (18)
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (6)
134
TypeSymbol elementType = ((AsyncStateMachine)
stateMachineType
).IteratorElementType;
160
Debug.Assert(
stateMachineType
.Constructor is IteratorConstructor);
162
F.CurrentFunction =
stateMachineType
.Constructor;
207
F.New(
stateMachineType
.Constructor.AsMember(frameType), F.Literal(initialState))));
385
MethodSymbol startMethod = _asyncMethodBuilderMemberCollection.Start.Construct(this.
stateMachineType
);
386
instSymbol = F.SynthesizedLocal(this.
stateMachineType
);
Lowering\AsyncRewriter\AsyncRewriter.cs (3)
34
_constructedSuccessfully = AsyncMethodBuilderMemberCollection.TryCreate(F, method, this.
stateMachineType
.TypeMap, out _asyncMethodBuilderMemberCollection);
195
if (
stateMachineType
.TypeKind == TypeKind.Class)
197
F.CurrentFunction =
stateMachineType
.Constructor;
Lowering\IteratorRewriter\IteratorRewriter.cs (3)
277
Debug.Assert(
stateMachineType
.Constructor is IteratorConstructor);
279
F.CurrentFunction =
stateMachineType
.Constructor;
309
F.New(
stateMachineType
.Constructor.AsMember(frameType), F.Literal(initialState))));
Lowering\StateMachineRewriter\StateMachineRewriter.cs (6)
100
F.OpenNestedType(
stateMachineType
);
145
var typeMap =
stateMachineType
.TypeMap;
292
var frameType = method.IsGenericMethod ?
stateMachineType
.Construct(method.TypeArgumentsWithAnnotations, unbound: false) :
stateMachineType
;
427
var resultVariable = F.SynthesizedLocal(
stateMachineType
, null);
429
BoundStatement makeIterator = F.Assignment(F.Local(resultVariable), F.New(
stateMachineType
.Constructor, F.Literal(initialState)));