Skip to content

Commit

Permalink
More naming
Browse files Browse the repository at this point in the history
  • Loading branch information
bfarmer67 committed Sep 14, 2024
1 parent 40334e5 commit b140869
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions AsyncExpressions.sln.DotSettings
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/GrammarAndSpelling/GrammarChecking/Exceptions/=the_0020await/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=awaiters/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=await_0027s/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Funcs/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Hyperbee/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
4 changes: 2 additions & 2 deletions src/Hyperbee.AsyncExpressions/StateMachineBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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" )!;
Expand Down Expand Up @@ -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:
//
Expand Down

0 comments on commit b140869

Please sign in to comment.