1 write to stateField
Microsoft.CodeAnalysis.CSharp (1)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
125
this.
stateField
= state;
14 references to stateField
Microsoft.CodeAnalysis.CSharp (14)
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (3)
147
bodyBuilder.Add(F.Assignment(F.Local(cachedState), F.Field(F.This(),
stateField
)));
167
var stateDone = F.Assignment(F.Field(F.This(),
stateField
), F.Literal(StateMachineState.FinishedState));
228
F.ExpressionStatement(F.AssignmentExpression(F.Field(F.This(),
stateField
), F.Literal(StateMachineState.FinishedState)));
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (10)
117
F.Assignment(F.Local(cachedState), F.Field(F.This(),
stateField
)),
122
F.Assignment(F.Field(F.This(),
stateField
), F.Literal(StateMachineState.NotStartedOrRunningState)),
166
F.Assignment(F.Field(F.This(),
stateField
), F.Literal(StateMachineState.FinishedState)),
173
var stateLocal = F.SynthesizedLocal(
stateField
.Type);
178
F.Assignment(F.Local(stateLocal), F.Field(F.This(),
stateField
)),
181
F.Assignment(F.Field(F.This(),
stateField
), F.Literal(StateMachineState.FinishedState)),
344
F.Assignment(F.Field(F.This(),
stateField
), F.Literal(stateNumber)),
348
F.Assignment(F.Field(F.This(),
stateField
), F.Literal(_currentFinallyFrame.finalizeState)));
413
F.Assignment(F.Field(F.This(),
stateField
), F.Literal(frame.parent.finalizeState)),
431
bodyStatements.Add(F.Assignment(F.Field(F.This(),
stateField
), F.Literal(frame.finalizeState)));
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
938
return F.Assignment(F.Field(F.This(),
stateField
), F.AssignmentExpression(F.Local(cachedState), F.Literal(stateNumber)));