1 write to stateField
Microsoft.CodeAnalysis.CSharp (1)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
123this.stateField = state;
12 references to stateField
Microsoft.CodeAnalysis.CSharp (12)
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (3)
145bodyBuilder.Add(F.Assignment(F.Local(cachedState), F.Field(F.This(), stateField))); 165var stateDone = F.Assignment(F.Field(F.This(), stateField), F.Literal(StateMachineState.FinishedState)); 241F.ExpressionStatement(F.AssignmentExpression(F.Field(F.This(), stateField), F.Literal(StateMachineState.FinishedState)));
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (8)
116F.Assignment(F.Local(cachedState), F.Field(F.This(), stateField)), 121F.Assignment(F.Field(F.This(), stateField), F.Literal(StateMachineState.NotStartedOrRunningState)), 167var stateLocal = F.SynthesizedLocal(stateField.Type); 172F.Assignment(F.Local(stateLocal), F.Field(F.This(), stateField)), 336F.Assignment(F.Field(F.This(), stateField), F.Literal(stateNumber)), 340F.Assignment(F.Field(F.This(), stateField), F.Literal(_currentFinallyFrame.finalizeState))); 405F.Assignment(F.Field(F.This(), stateField), F.Literal(frame.parent.finalizeState)), 423bodyStatements.Add(F.Assignment(F.Field(F.This(), stateField), F.Literal(frame.finalizeState)));
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
920return F.Assignment(F.Field(F.This(), stateField), F.AssignmentExpression(F.Local(cachedState), F.Literal(stateNumber)));