Skip to content

Commit 4d19fd8

Browse files
Dedupe and remove redundant parens
1 parent 34aa0bd commit 4d19fd8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CodeConverter/Util/ISymbolExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public static bool IsPartialMethodImplementation(this ISymbol? declaredSymbol)
7676

7777
public static bool CanHaveMethodBody(this ISymbol? declaredSymbol)
7878
{
79-
return declaredSymbol is IMethodSymbol ms && (!ms.IsPartialDefinition && (ms.PartialImplementationPart == null && !ms.IsExtern));
79+
return declaredSymbol is IMethodSymbol ms && !ms.IsExtern && !IsPartialMethodDefinition(declaredSymbol);
8080
}
8181

8282
public static bool IsPartialMethodDefinition(this ISymbol? declaredSymbol)

0 commit comments

Comments
 (0)