1- var _dec , _dec2 , _class , _dec3 , _dec4 , _dec5 , _class2 , _class3 ;
1+ var _dec , _dec2 , _dec3 , _class , _dec4 , _dec5 , _dec6 , _dec7 , _dec8 , _dec9 , _dec10 , _dec11 , _dec12 , _dec13 , _dec14 , _dec15 , _class2 , _class3 , _dec16 , _dec17 , _dec18 , _dec19 , _dec20 , _dec21 , _dec22 , _dec23 , _class4 , _class5 ;
22
33function _applyDecoratedDescriptor ( target , property , decorators , descriptor , context ) { var desc = { } ; Object . keys ( descriptor ) . forEach ( function ( key ) { desc [ key ] = descriptor [ key ] ; } ) ; desc . enumerable = ! ! desc . enumerable ; desc . configurable = ! ! desc . configurable ; if ( 'value' in desc || desc . initializer ) { desc . writable = true ; } desc = decorators . slice ( ) . reverse ( ) . reduce ( function ( desc , decorator ) { return decorator ( target , property , desc ) || desc ; } , desc ) ; if ( context && desc . initializer !== void 0 ) { desc . value = desc . initializer ? desc . initializer . call ( context ) : void 0 ; desc . initializer = undefined ; } if ( desc . initializer === void 0 ) { Object . defineProperty ( target , property , desc ) ; desc = null ; } return desc ; }
44
55class Injected { }
66
7- class MyClass {
7+ let MyClass = ( _dec = function ( target , key ) {
8+ return inject ( ) ( target , undefined , 0 ) ;
9+ } , _dec2 = Reflect . metadata ( "design:type" , Function ) , _dec3 = Reflect . metadata ( "design:paramtypes" , [ typeof Injected === "undefined" ? Object : Injected ] ) , _dec ( _class = _dec2 ( _class = _dec3 ( _class = class MyClass {
810 constructor ( parameter ) { }
911
10- }
11-
12- inject ( ) ( MyClass , undefined , 0 ) ;
13- let MyOtherClass = ( _dec = decorate ( 'named' ) , _dec2 = Reflect . metadata ( "design:paramtypes" , [ typeof Injected === "undefined" ? Object : Injected , typeof Schema === "undefined" ? Object : Schema ] ) , ( _class = class MyOtherClass {
12+ } ) || _class ) || _class ) || _class ) ;
13+ let MyOtherClass = ( _dec4 = function ( target , key ) {
14+ return inject ( ) ( target , undefined , 0 ) ;
15+ } , _dec5 = function ( target , key ) {
16+ return inject ( 'KIND' ) ( target , undefined , 1 ) ;
17+ } , _dec6 = Reflect . metadata ( "design:type" , Function ) , _dec7 = Reflect . metadata ( "design:paramtypes" , [ typeof Injected === "undefined" ? Object : Injected , typeof Injected === "undefined" ? Object : Injected ] ) , _dec8 = function ( target , key ) {
18+ return demo ( ) ( target , key , 0 ) ;
19+ } , _dec9 = Reflect . metadata ( "design:type" , Function ) , _dec10 = Reflect . metadata ( "design:paramtypes" , [ String , void 0 ] ) , _dec11 = decorate ( 'named' ) , _dec12 = function ( target , key ) {
20+ return inject ( ) ( target , key , 0 ) ;
21+ } , _dec13 = function ( target , key ) {
22+ return arg ( ) ( target , key , 1 ) ;
23+ } , _dec14 = Reflect . metadata ( "design:type" , Function ) , _dec15 = Reflect . metadata ( "design:paramtypes" , [ typeof Injected === "undefined" ? Object : Injected , typeof Schema === "undefined" ? Object : Schema ] ) , _dec4 ( _class2 = _dec5 ( _class2 = _dec6 ( _class2 = _dec7 ( _class2 = ( _class3 = class MyOtherClass {
1424 constructor ( parameter , otherParam ) {
1525 this . parameter = parameter ;
1626 }
@@ -19,20 +29,18 @@ let MyOtherClass = (_dec = decorate('named'), _dec2 = Reflect.metadata("design:p
1929
2030 method ( param , schema ) { }
2131
22- } , ( _applyDecoratedDescriptor ( _class . prototype , "method" , [ _dec , _dec2 ] , Object . getOwnPropertyDescriptor ( _class . prototype , "method" ) , _class . prototype ) ) , _class ) ) ;
23- arg ( ) ( MyOtherClass . prototype , "method" , 1 ) ;
24- inject ( ) ( MyOtherClass . prototype , "method" , 0 ) ;
25- demo ( ) ( MyOtherClass . prototype , "methodUndecorated" , 0 ) ;
26- inject ( 'KIND' ) ( MyOtherClass , undefined , 1 ) ;
27- inject ( ) ( MyOtherClass , undefined , 0 ) ;
28- let DecoratedClass = ( _dec3 = Reflect . metadata ( "design:paramtypes" , [ typeof Injected === "undefined" ? Object : Injected , typeof Injected === "undefined" ? Object : Injected ] ) , _dec4 = decorate ( 'example' ) , _dec5 = Reflect . metadata ( "design:paramtypes" , [ String ] ) , Decorate ( _class2 = _dec3 ( _class2 = ( _class3 = class DecoratedClass {
32+ } , ( _applyDecoratedDescriptor ( _class3 . prototype , "methodUndecorated" , [ _dec8 , _dec9 , _dec10 ] , Object . getOwnPropertyDescriptor ( _class3 . prototype , "methodUndecorated" ) , _class3 . prototype ) , _applyDecoratedDescriptor ( _class3 . prototype , "method" , [ _dec11 , _dec12 , _dec13 , _dec14 , _dec15 ] , Object . getOwnPropertyDescriptor ( _class3 . prototype , "method" ) , _class3 . prototype ) ) , _class3 ) ) || _class2 ) || _class2 ) || _class2 ) || _class2 ) ;
33+ let DecoratedClass = ( _dec16 = function ( target , key ) {
34+ return inject ( ) ( target , undefined , 0 ) ;
35+ } , _dec17 = function ( target , key ) {
36+ return inject ( ) ( target , undefined , 1 ) ;
37+ } , _dec18 = Reflect . metadata ( "design:type" , Function ) , _dec19 = Reflect . metadata ( "design:paramtypes" , [ typeof Injected === "undefined" ? Object : Injected , typeof Injected === "undefined" ? Object : Injected ] ) , _dec20 = decorate ( 'example' ) , _dec21 = function ( target , key ) {
38+ return inject ( ) ( target , key , 0 ) ;
39+ } , _dec22 = Reflect . metadata ( "design:type" , Function ) , _dec23 = Reflect . metadata ( "design:paramtypes" , [ String ] ) , Decorate ( _class4 = _dec16 ( _class4 = _dec17 ( _class4 = _dec18 ( _class4 = _dec19 ( _class4 = ( _class5 = class DecoratedClass {
2940 constructor ( module , otherModule ) {
3041 this . module = module ;
3142 }
3243
3344 method ( param ) { }
3445
35- } , ( _applyDecoratedDescriptor ( _class3 . prototype , "method" , [ _dec4 , _dec5 ] , Object . getOwnPropertyDescriptor ( _class3 . prototype , "method" ) , _class3 . prototype ) ) , _class3 ) ) || _class2 ) || _class2 ) ;
36- inject ( ) ( DecoratedClass . prototype , "method" , 0 ) ;
37- inject ( ) ( DecoratedClass , undefined , 1 ) ;
38- inject ( ) ( DecoratedClass , undefined , 0 ) ;
46+ } , ( _applyDecoratedDescriptor ( _class5 . prototype , "method" , [ _dec20 , _dec21 , _dec22 , _dec23 ] , Object . getOwnPropertyDescriptor ( _class5 . prototype , "method" ) , _class5 . prototype ) ) , _class5 ) ) || _class4 ) || _class4 ) || _class4 ) || _class4 ) || _class4 ) ;
0 commit comments