-
-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Respect diagnostic RCS0062 for RCS1016 and RR0169
- Loading branch information
Showing
10 changed files
with
226 additions
and
73 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
src/Common/CSharp/Analysis/ConvertExpressionBodyAnalysis.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using Microsoft.CodeAnalysis.CSharp; | ||
|
||
namespace Roslynator.CSharp.Analysis; | ||
|
||
internal static class ConvertExpressionBodyAnalysis | ||
{ | ||
public static bool BreakExpressionOnNewLine(SyntaxKind syntaxKind) | ||
{ | ||
switch (syntaxKind) | ||
{ | ||
case SyntaxKind.MethodDeclaration: | ||
case SyntaxKind.ConstructorDeclaration: | ||
case SyntaxKind.DestructorDeclaration: | ||
case SyntaxKind.PropertyDeclaration: | ||
case SyntaxKind.IndexerDeclaration: | ||
case SyntaxKind.OperatorDeclaration: | ||
case SyntaxKind.ConversionOperatorDeclaration: | ||
return true; | ||
default: | ||
return false; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.