Small manual code style tweaks and warning suppressions
このコミットが含まれているのは:
1 親
9343ac7f7b
コミット
27c629f3b4
8ファイル変更
+42
-37
検索条件に一致するファイルはありません
@@ -162,7 +162,7 @@ internal static class SyntaxNodeExtensions
|
||||
/// <returns>A node like the one in input, but just as a definition.</returns>
|
||||
public static MethodDeclarationSyntax AsDefinition(this MethodDeclarationSyntax node)
|
||||
{
|
||||
if (node.ExpressionBody is ArrowExpressionClauseSyntax)
|
||||
if (node.ExpressionBody is not null)
|
||||
{
|
||||
return node.WithExpressionBody(null).WithSemicolonToken(Token(SyntaxKind.SemicolonToken));
|
||||
}
|
||||
@@ -205,7 +205,7 @@ internal static class SyntaxNodeExtensions
|
||||
/// <returns>A node like the one in input, but just as a definition.</returns>
|
||||
public static LocalFunctionStatementSyntax AsDefinition(this LocalFunctionStatementSyntax node)
|
||||
{
|
||||
if (node.ExpressionBody is ArrowExpressionClauseSyntax)
|
||||
if (node.ExpressionBody is not null)
|
||||
{
|
||||
return node.WithExpressionBody(null).WithSemicolonToken(Token(SyntaxKind.SemicolonToken));
|
||||
}
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする