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