@@ -4289,10 +4289,7 @@ restAPIMethodReturnBodyClientType is ListType restAPIMethodReturnBodyClientListT
4289
4289
function . Indent ( ( ) =>
4290
4290
{
4291
4291
function . Text ( ".map(" ) ;
4292
- function . AnonymousClass ( $ "new Function<{ returnValueTypeArgumentType } , { mapperReturnType } >()", anonymousClass =>
4293
- {
4294
- anonymousClass . PublicMethod ( $ "{ mapperReturnType } apply(RestResponse<?, ?> res)", method => method . Return ( "res.body()" ) ) ;
4295
- } ) ;
4292
+ function . AnonymousFunction ( returnValueTypeArgumentType . ToString ( ) , "res" , mapperReturnType . ToString ( ) , method => method . Return ( "res.body()" ) ) ;
4296
4293
function . Line ( ");" ) ;
4297
4294
} ) ;
4298
4295
} ) ;
@@ -4355,10 +4352,7 @@ restAPIMethodReturnBodyClientType is ListType restAPIMethodReturnBodyClientListT
4355
4352
{
4356
4353
function . Text ( ".map(" ) ;
4357
4354
4358
- function . AnonymousClass ( $ "new Function<{ returnValueTypeArgumentType } , { mapperReturnType } >()", anonymousClass =>
4359
- {
4360
- anonymousClass . PublicMethod ( $ "{ mapperReturnType } apply(RestResponse<?, { mapperReturnType } > res)", method => method . Return ( "res.body()" ) ) ;
4361
- } ) ;
4355
+ function . AnonymousFunction ( returnValueTypeArgumentType . ToString ( ) , "res" , mapperReturnType . ToString ( ) , method => method . Return ( "res.body()" ) ) ;
4362
4356
function . Line ( ")" ) ;
4363
4357
function . Line ( ".toObservable();" ) ;
4364
4358
} ) ;
@@ -4566,23 +4560,15 @@ restAPIMethodReturnBodyClientType is ListType restAPIMethodReturnBodyClientListT
4566
4560
if ( restAPIMethodReturnBodyClientType != PrimitiveType . Void )
4567
4561
{
4568
4562
function . Text ( $ ".flatMapMaybe(") ;
4569
- function . AnonymousClass ( $ "new Function<{ returnValueTypeArgumentClientType } , { mapperReturnType } >()", anonymousClassBlock =>
4570
- {
4571
- anonymousClassBlock . PublicMethod (
4572
- $ "{ mapperReturnType } apply({ returnValueTypeArgumentClientType } res)",
4563
+ function . AnonymousFunction ( returnValueTypeArgumentClientType . ToString ( ) , "res" , mapperReturnType . ToString ( ) ,
4573
4564
method => method . Return ( $ "res.body() == null ? Maybe.<{ restAPIMethodReturnBodyClientType . AsNullable ( ) } >empty() : Maybe.just(res.body())") ) ;
4574
- } ) ;
4575
4565
function . Line ( ");" ) ;
4576
4566
}
4577
4567
else if ( isFluentDelete )
4578
4568
{
4579
4569
function . Text ( $ ".flatMapMaybe(") ;
4580
- function . AnonymousClass ( $ "new Function<{ returnValueTypeArgumentClientType } , { GenericType . Maybe ( ClassType . Void ) } >()", anonymousClassBlock =>
4581
- {
4582
- anonymousClassBlock . PublicMethod (
4583
- $ "{ GenericType . Maybe ( ClassType . Void ) } apply({ returnValueTypeArgumentClientType } res)",
4570
+ function . AnonymousFunction ( returnValueTypeArgumentClientType . ToString ( ) , "res" , GenericType . Maybe ( ClassType . Void ) . ToString ( ) ,
4584
4571
method => method . Return ( "Maybe.empty()" ) ) ;
4585
- } ) ;
4586
4572
function . Line ( ");" ) ;
4587
4573
}
4588
4574
else
0 commit comments