1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
// should be retained
/*@__PURE__*/ a();
/*@__PURE__*/ new a();
console.log('code');
console.log('should remain impure');
/*@__PURE__*/ drop1();
/*@__PURE__*/
drop2();
keep1() ; keep2();
keep3() ; /*@__PURE__*/
drop3();
keep4() ; /* other comment */ keep5();
keep6() ; // other comment
keep7();
keep8() && keep9();
/*@__PURE__*/ Drop1(),
/*@__PURE__*/
Drop2(),
Keep1() , Keep2(),
Keep3() , /*@__PURE__*/
Drop3(),
Keep4() , /* other comment */ Keep5(),
Keep6() , // other comment
Keep7(),
Keep8() && Keep9();
|