File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -557,6 +557,9 @@ private void StubParameters(ICollection<IParameterSymbol> parameters)
557
557
} ) ;
558
558
}
559
559
560
+ private static bool ExcludeMethod ( IMethodSymbol symbol ) =>
561
+ symbol . Name == "<Clone>$" ;
562
+
560
563
private void StubMethod ( IMethodSymbol symbol , IMethodSymbol ? explicitInterfaceSymbol , IMethodSymbol ? baseCtor )
561
564
{
562
565
var methodKind = explicitInterfaceSymbol is null ? symbol . MethodKind : explicitInterfaceSymbol . MethodKind ;
@@ -568,7 +571,7 @@ private void StubMethod(IMethodSymbol symbol, IMethodSymbol? explicitInterfaceSy
568
571
MethodKind . Ordinary
569
572
} ;
570
573
571
- if ( ! relevantMethods . Contains ( methodKind ) )
574
+ if ( ! relevantMethods . Contains ( methodKind ) || ExcludeMethod ( symbol ) )
572
575
return ;
573
576
574
577
StubAttributes ( symbol . GetAttributes ( ) ) ;
You can’t perform that action at this time.
0 commit comments