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)
52
52
ExtractCompilerGenerated ( trapFile ) ;
53
53
}
54
54
55
- private bool IsCompilerGeneratedDelegate ( )
56
- {
55
+ private bool IsCompilerGeneratedDelegate ( ) =>
57
56
// Lambdas with parameter defaults or a `params` parameter are implemented
58
57
// 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 ;
66
61
67
62
public static new OrdinaryMethod Create ( Context cx , IMethodSymbol method )
68
63
{
You can’t perform that action at this time.
0 commit comments