diff --git a/ChangeLog.md b/ChangeLog.md index 72a940d804..9b2f0a434c 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fix analyzer [RCS1213](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1213) ([PR](https://github.com/dotnet/roslynator/pull/1586)) - Improve code fixer for [RCS1228](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1228) ([PR](https://github.com/dotnet/roslynator/pull/1585)) +- Fix diagnostic message for [RCS0032](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS0032) ([PR](https://github.com/dotnet/roslynator/pull/1588)) ### Changed diff --git a/src/Formatting.Analyzers/CSharp/PlaceNewLineAfterOrBeforeArrowTokenAnalyzer.cs b/src/Formatting.Analyzers/CSharp/PlaceNewLineAfterOrBeforeArrowTokenAnalyzer.cs index e5b99ac1a2..5c90473abf 100644 --- a/src/Formatting.Analyzers/CSharp/PlaceNewLineAfterOrBeforeArrowTokenAnalyzer.cs +++ b/src/Formatting.Analyzers/CSharp/PlaceNewLineAfterOrBeforeArrowTokenAnalyzer.cs @@ -49,7 +49,7 @@ private static void AnalyzeArrowExpressionClause(SyntaxNodeAnalysisContext conte context, DiagnosticRules.PlaceNewLineAfterOrBeforeArrowToken, block.GetLocation(), - (block.First.IsToken) ? "before" : "after"); + (newLinePosition == NewLinePosition.Before) ? "before" : "after"); } } }