1 write to stateField
Microsoft.CodeAnalysis.CSharp (1)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
125
this.
stateField
= state;
12 references to stateField
Microsoft.CodeAnalysis.CSharp (12)
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 (8)
117
F.Assignment(F.Local(cachedState), F.Field(F.This(),
stateField
)),
122
F.Assignment(F.Field(F.This(),
stateField
), F.Literal(StateMachineState.NotStartedOrRunningState)),
172
var stateLocal = F.SynthesizedLocal(
stateField
.Type);
177
F.Assignment(F.Local(stateLocal), F.Field(F.This(),
stateField
)),
342
F.Assignment(F.Field(F.This(),
stateField
), F.Literal(stateNumber)),
346
F.Assignment(F.Field(F.This(),
stateField
), F.Literal(_currentFinallyFrame.finalizeState)));
411
F.Assignment(F.Field(F.This(),
stateField
), F.Literal(frame.parent.finalizeState)),
429
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)));