File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -52,17 +52,12 @@ public override void Populate(TextWriter trapFile)
5252 ExtractCompilerGenerated ( trapFile ) ;
5353 }
5454
55- private bool IsCompilerGeneratedDelegate ( )
56- {
55+ private bool IsCompilerGeneratedDelegate ( ) =>
5756 // Lambdas with parameter defaults or a `params` parameter are implemented
5857 // using compiler generated delegate types.
59- if ( Symbol . MethodKind == MethodKind . DelegateInvoke &&
60- Symbol . ContainingType is INamedTypeSymbol nt )
61- {
62- return nt . TypeKind == TypeKind . Delegate && nt . IsImplicitlyDeclared ;
63- }
64- return false ;
65- }
58+ Symbol . MethodKind == MethodKind . DelegateInvoke &&
59+ Symbol . ContainingType is INamedTypeSymbol nt &&
60+ nt . IsImplicitlyDeclared ;
6661
6762 public static new OrdinaryMethod Create ( Context cx , IMethodSymbol method )
6863 {
You can’t perform that action at this time.
0 commit comments