@@ -39,18 +39,19 @@ exports[`decorators default to 2022-03 1`] = `
3939 };
4040 ctx .addInitializer = createAddInitializerMethod (initializers , decoratorFinishedRef );
4141 var get, set;
42- if (0 === kind ) if (isPrivate ) {
43- get = desc .get ;
44- set = desc .set ;
45- } else {
46- get = function () {
47- return this [name ];
48- };
49- set = function (v ) {
50- this [name ] = v ;
51- };
52- }
53- else if (2 === kind ) get = function () {
42+ if (0 === kind ) {
43+ if (isPrivate ) {
44+ get = desc .get ;
45+ set = desc .set ;
46+ } else {
47+ get = function () {
48+ return this [name ];
49+ };
50+ set = function (v ) {
51+ this [name ] = v ;
52+ };
53+ }
54+ } else if (2 === kind ) get = function () {
5455 return desc .value ;
5556 };
5657 else {
@@ -147,12 +148,14 @@ exports[`decorators default to 2022-03 1`] = `
147148 set: set
148149 };
149150 } else value = newValue ;
150- if (void 0 !== newInit ) if (void 0 === init ) init = newInit ;
151- else if (" function" == typeof init ) init = [
152- init ,
153- newInit
154- ];
155- else init .push (newInit );
151+ if (void 0 !== newInit ) {
152+ if (void 0 === init ) init = newInit ;
153+ else if (" function" == typeof init ) init = [
154+ init ,
155+ newInit
156+ ];
157+ else init .push (newInit );
158+ }
156159 }
157160 }
158161 if (0 === kind || 1 === kind ) {
@@ -181,18 +184,19 @@ exports[`decorators default to 2022-03 1`] = `
181184 } else if (2 === kind ) desc .value = value ;
182185 else if (3 === kind ) desc .get = value ;
183186 else if (4 === kind ) desc .set = value ;
184- if (isPrivate ) if (1 === kind ) {
185- ret .push (function (instance , args ) {
186- return value .get .call (instance , args );
187- });
188- ret .push (function (instance , args ) {
189- return value .set .call (instance , args );
187+ if (isPrivate ) {
188+ if (1 === kind ) {
189+ ret .push (function (instance , args ) {
190+ return value .get .call (instance , args );
191+ });
192+ ret .push (function (instance , args ) {
193+ return value .set .call (instance , args );
194+ });
195+ } else if (2 === kind ) ret .push (value );
196+ else ret .push (function (instance , args ) {
197+ return value .call (instance , args );
190198 });
191- } else if (2 === kind ) ret .push (value );
192- else ret .push (function (instance , args ) {
193- return value .call (instance , args );
194- });
195- else Object .defineProperty (base , name , desc );
199+ } else Object .defineProperty (base , name , desc );
196200 }
197201 }
198202 function applyMemberDecs(Class , decInfos , metadata ) {
@@ -389,18 +393,19 @@ exports[`decorators with experimentalDecorators in tsconfig 2`] = `
389393 };
390394 ctx .addInitializer = createAddInitializerMethod (initializers , decoratorFinishedRef );
391395 var get, set;
392- if (0 === kind ) if (isPrivate ) {
393- get = desc .get ;
394- set = desc .set ;
395- } else {
396- get = function () {
397- return this [name ];
398- };
399- set = function (v ) {
400- this [name ] = v ;
401- };
402- }
403- else if (2 === kind ) get = function () {
396+ if (0 === kind ) {
397+ if (isPrivate ) {
398+ get = desc .get ;
399+ set = desc .set ;
400+ } else {
401+ get = function () {
402+ return this [name ];
403+ };
404+ set = function (v ) {
405+ this [name ] = v ;
406+ };
407+ }
408+ } else if (2 === kind ) get = function () {
404409 return desc .value ;
405410 };
406411 else {
@@ -497,12 +502,14 @@ exports[`decorators with experimentalDecorators in tsconfig 2`] = `
497502 set: set
498503 };
499504 } else value = newValue ;
500- if (void 0 !== newInit ) if (void 0 === init ) init = newInit ;
501- else if (" function" == typeof init ) init = [
502- init ,
503- newInit
504- ];
505- else init .push (newInit );
505+ if (void 0 !== newInit ) {
506+ if (void 0 === init ) init = newInit ;
507+ else if (" function" == typeof init ) init = [
508+ init ,
509+ newInit
510+ ];
511+ else init .push (newInit );
512+ }
506513 }
507514 }
508515 if (0 === kind || 1 === kind ) {
@@ -531,18 +538,19 @@ exports[`decorators with experimentalDecorators in tsconfig 2`] = `
531538 } else if (2 === kind ) desc .value = value ;
532539 else if (3 === kind ) desc .get = value ;
533540 else if (4 === kind ) desc .set = value ;
534- if (isPrivate ) if (1 === kind ) {
535- ret .push (function (instance , args ) {
536- return value .get .call (instance , args );
537- });
538- ret .push (function (instance , args ) {
539- return value .set .call (instance , args );
541+ if (isPrivate ) {
542+ if (1 === kind ) {
543+ ret .push (function (instance , args ) {
544+ return value .get .call (instance , args );
545+ });
546+ ret .push (function (instance , args ) {
547+ return value .set .call (instance , args );
548+ });
549+ } else if (2 === kind ) ret .push (value );
550+ else ret .push (function (instance , args ) {
551+ return value .call (instance , args );
540552 });
541- } else if (2 === kind ) ret .push (value );
542- else ret .push (function (instance , args ) {
543- return value .call (instance , args );
544- });
545- else Object .defineProperty (base , name , desc );
553+ } else Object .defineProperty (base , name , desc );
546554 }
547555 }
548556 function applyMemberDecs(Class , decInfos , metadata ) {
0 commit comments