diff --git a/src/Hyperbee.Expressions/AsyncBlockExpression.cs b/src/Hyperbee.Expressions/AsyncBlockExpression.cs index be33b77..c513196 100644 --- a/src/Hyperbee.Expressions/AsyncBlockExpression.cs +++ b/src/Hyperbee.Expressions/AsyncBlockExpression.cs @@ -64,7 +64,7 @@ private LoweringInfo LoweringTransformer() } catch ( LoweringException ex ) { - throw new InvalidOperationException( $"Unable to lower {nameof(AsyncBlockExpression)}.", ex ); + throw new InvalidOperationException( $"Unable to lower {nameof( AsyncBlockExpression )}.", ex ); } } diff --git a/src/Hyperbee.Expressions/Transformation/LoweringVisitor.cs b/src/Hyperbee.Expressions/Transformation/LoweringVisitor.cs index e9be940..5364347 100644 --- a/src/Hyperbee.Expressions/Transformation/LoweringVisitor.cs +++ b/src/Hyperbee.Expressions/Transformation/LoweringVisitor.cs @@ -47,10 +47,10 @@ public LoweringInfo Transform( Type resultType, ParameterExpression[] variables, void ThrowIfInvalid() { if ( _states.Scopes[0].States.Count == 0 ) - throw new LoweringException( $"Evaluation of the {nameof(expressions)} parameter resulted in empty states." ); + throw new LoweringException( $"Evaluation of the {nameof( expressions )} parameter resulted in empty states." ); if ( _awaitCount == 0 ) - throw new LoweringException( $"The {nameof(expressions)} parameter must contain at least one awaitable." ); + throw new LoweringException( $"The {nameof( expressions )} parameter must contain at least one awaitable." ); } static ParameterExpression CreateFinalResultVariable( Type resultType, VariableResolver resolver ) diff --git a/src/Hyperbee.Expressions/Transformation/StateMachineBuilder.cs b/src/Hyperbee.Expressions/Transformation/StateMachineBuilder.cs index 08a66ae..8f1e2dc 100644 --- a/src/Hyperbee.Expressions/Transformation/StateMachineBuilder.cs +++ b/src/Hyperbee.Expressions/Transformation/StateMachineBuilder.cs @@ -34,7 +34,7 @@ public StateMachineBuilder( ModuleBuilder moduleBuilder, string typeName ) public Expression CreateStateMachine( LoweringTransformer loweringTransformer, int id ) { - ArgumentNullException.ThrowIfNull( loweringTransformer, nameof(loweringTransformer) ); + ArgumentNullException.ThrowIfNull( loweringTransformer, nameof( loweringTransformer ) ); // Lower the async expression //