1 write to stateField
Microsoft.CodeAnalysis.CSharp (1)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
125this.stateField = state;
12 references to stateField
Microsoft.CodeAnalysis.CSharp (12)
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (3)
147bodyBuilder.Add(F.Assignment(F.Local(cachedState), F.Field(F.This(), stateField))); 167var stateDone = F.Assignment(F.Field(F.This(), stateField), F.Literal(StateMachineState.FinishedState)); 228F.ExpressionStatement(F.AssignmentExpression(F.Field(F.This(), stateField), F.Literal(StateMachineState.FinishedState)));
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (8)
117F.Assignment(F.Local(cachedState), F.Field(F.This(), stateField)), 122F.Assignment(F.Field(F.This(), stateField), F.Literal(StateMachineState.NotStartedOrRunningState)), 172var stateLocal = F.SynthesizedLocal(stateField.Type); 177F.Assignment(F.Local(stateLocal), F.Field(F.This(), stateField)), 342F.Assignment(F.Field(F.This(), stateField), F.Literal(stateNumber)), 346F.Assignment(F.Field(F.This(), stateField), F.Literal(_currentFinallyFrame.finalizeState))); 411F.Assignment(F.Field(F.This(), stateField), F.Literal(frame.parent.finalizeState)), 429bodyStatements.Add(F.Assignment(F.Field(F.This(), stateField), F.Literal(frame.finalizeState)));
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
938return F.Assignment(F.Field(F.This(), stateField), F.AssignmentExpression(F.Local(cachedState), F.Literal(stateNumber)));