File: _expected.js

package info (click to toggle)
node-rollup 3.29.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 53,520 kB
  • sloc: javascript: 115,081; sh: 26; makefile: 18
file content (28 lines) | stat: -rw-r--r-- 519 bytes parent folder | download | duplicates (2)
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();