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