2 writes to stateField
Microsoft.CodeAnalysis.CSharp (2)
Lowering\AsyncRewriter\AsyncRewriter.cs (1)
141
stateField
= F.StateMachineField(F.SpecialType(SpecialType.System_Int32), GeneratedNames.MakeStateMachineStateFieldName(), isPublic: true);
Lowering\IteratorRewriter\IteratorRewriter.cs (1)
177
stateField
= F.StateMachineField(F.SpecialType(SpecialType.System_Int32), GeneratedNames.MakeStateMachineStateFieldName());
12 references to stateField
Microsoft.CodeAnalysis.CSharp (12)
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (6)
169
bodyBuilder.Add(F.Assignment(F.InstanceField(
stateField
), F.Parameter(F.CurrentFunction.Parameters[0]))); // this.state = state;
331
F.IntEqual(F.InstanceField(
stateField
), F.Literal(StateMachineState.FinishedState)),
441
F.IntGreaterThanOrEqual(F.InstanceField(
stateField
), F.Literal(StateMachineState.NotStartedOrRunningState)),
447
F.IntEqual(F.InstanceField(
stateField
), F.Literal(StateMachineState.FinishedState)),
670
F.Assignment(F.Field(F.This(),
stateField
), F.Literal(initialState)));
701
state:
stateField
,
Lowering\AsyncRewriter\AsyncRewriter.cs (2)
241
F.Field(F.Local(stateMachineVariable),
stateField
.AsMember(frameType)),
284
state:
stateField
,
Lowering\IteratorRewriter\IteratorRewriter.cs (2)
282
bodyBuilder.Add(F.Assignment(F.Field(F.This(),
stateField
), F.Parameter(F.CurrentFunction.Parameters[0]))); // this.state = state;
333
stateField
,
Lowering\StateMachineRewriter\StateMachineRewriter.cs (2)
455
F.IntEqual(F.Field(F.This(),
stateField
), F.Literal(StateMachineState.FinishedState)),
516
F.Assignment(F.Field(F.This(),
stateField
), F.Literal(initialState)));