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)
557557 } ) ;
558558 }
559559
560+ private static bool ExcludeMethod ( IMethodSymbol symbol ) =>
561+ symbol . Name == "<Clone>$" ;
562+
560563 private void StubMethod ( IMethodSymbol symbol , IMethodSymbol ? explicitInterfaceSymbol , IMethodSymbol ? baseCtor )
561564 {
562565 var methodKind = explicitInterfaceSymbol is null ? symbol . MethodKind : explicitInterfaceSymbol . MethodKind ;
@@ -568,7 +571,7 @@ private void StubMethod(IMethodSymbol symbol, IMethodSymbol? explicitInterfaceSy
568571 MethodKind . Ordinary
569572 } ;
570573
571- if ( ! relevantMethods . Contains ( methodKind ) )
574+ if ( ! relevantMethods . Contains ( methodKind ) || ExcludeMethod ( symbol ) )
572575 return ;
573576
574577 StubAttributes ( symbol . GetAttributes ( ) ) ;
You can’t perform that action at this time.
0 commit comments