diff --git a/AsyncExpressions.sln.DotSettings b/AsyncExpressions.sln.DotSettings index 82a6d4b..a42ee21 100644 --- a/AsyncExpressions.sln.DotSettings +++ b/AsyncExpressions.sln.DotSettings @@ -1,4 +1,6 @@  + True True + True True True \ No newline at end of file diff --git a/src/Hyperbee.AsyncExpressions/StateMachineBuilder.cs b/src/Hyperbee.AsyncExpressions/StateMachineBuilder.cs index b627b8c..e7f9c90 100644 --- a/src/Hyperbee.AsyncExpressions/StateMachineBuilder.cs +++ b/src/Hyperbee.AsyncExpressions/StateMachineBuilder.cs @@ -73,7 +73,7 @@ public Expression CreateStateMachine( bool createRunner = true ) var stateMachineBaseType = CreateStateMachineBaseType( _blockSource ); var stateMachineType = CreateStateMachineDerivedType( stateMachineBaseType ); - var moveNextLambda = CreateMoveNextExpression( _blockSource, stateMachineBaseType ); + var moveNextLambda = CreateMoveNextBody( _blockSource, stateMachineBaseType ); var stateMachineVariable = Expression.Variable( stateMachineType, "stateMachine" ); var setMoveNextMethod = stateMachineType.GetMethod( "SetMoveNext" )!; @@ -319,7 +319,7 @@ private void ImplementMoveNext( TypeBuilder typeBuilder, FieldBuilder moveNextEx ilGenerator.Emit( OpCodes.Ret ); } - private LambdaExpression CreateMoveNextExpression( BlockExpression block, Type stateMachineBaseType ) + private LambdaExpression CreateMoveNextBody( BlockExpression block, Type stateMachineBaseType ) { // Example of a typical state-machine: //