We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34aa0bd commit 4d19fd8Copy full SHA for 4d19fd8
1 file changed
CodeConverter/Util/ISymbolExtensions.cs
@@ -76,7 +76,7 @@ public static bool IsPartialMethodImplementation(this ISymbol? declaredSymbol)
76
77
public static bool CanHaveMethodBody(this ISymbol? declaredSymbol)
78
{
79
- return declaredSymbol is IMethodSymbol ms && (!ms.IsPartialDefinition && (ms.PartialImplementationPart == null && !ms.IsExtern));
+ return declaredSymbol is IMethodSymbol ms && !ms.IsExtern && !IsPartialMethodDefinition(declaredSymbol);
80
}
81
82
public static bool IsPartialMethodDefinition(this ISymbol? declaredSymbol)
0 commit comments