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