Skip to content

Commit f7ed06f

Browse files
authored
Fix diagnostic message for RCS0032 (#1588)
1 parent 9fe4dc0 commit f7ed06f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- Fix analyzer [RCS1213](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1213) ([PR](https://github.com/dotnet/roslynator/pull/1586))
1313
- Improve code fixer for [RCS1228](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1228) ([PR](https://github.com/dotnet/roslynator/pull/1585))
14+
- Fix diagnostic message for [RCS0032](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS0032) ([PR](https://github.com/dotnet/roslynator/pull/1588))
1415

1516
### Changed
1617

src/Formatting.Analyzers/CSharp/PlaceNewLineAfterOrBeforeArrowTokenAnalyzer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ private static void AnalyzeArrowExpressionClause(SyntaxNodeAnalysisContext conte
4949
context,
5050
DiagnosticRules.PlaceNewLineAfterOrBeforeArrowToken,
5151
block.GetLocation(),
52-
(block.First.IsToken) ? "before" : "after");
52+
(newLinePosition == NewLinePosition.Before) ? "before" : "after");
5353
}
5454
}
5555
}

0 commit comments

Comments
 (0)