You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Copy from <https://github.com/rolldown-rs/rolldown/blob/main/crates/rolldown/tests/esbuild/dce/remove_unused_pure_comment_calls/entry.js>
137
+
"
138
+
function bar() {}
139
+
let bare = foo(bar);
140
+
141
+
let at_yes = /* @__PURE__ */ foo(bar);
142
+
let at_no = /* @__PURE__ */ foo(bar());
143
+
let new_at_yes = /* @__PURE__ */ new foo(bar);
144
+
let new_at_no = /* @__PURE__ */ new foo(bar());
145
+
146
+
let nospace_at_yes = /*@__PURE__*/ foo(bar);
147
+
let nospace_at_no = /*@__PURE__*/ foo(bar());
148
+
let nospace_new_at_yes = /*@__PURE__*/ new foo(bar);
149
+
let nospace_new_at_no = /*@__PURE__*/ new foo(bar());
150
+
151
+
let num_yes = /* #__PURE__ */ foo(bar);
152
+
let num_no = /* #__PURE__ */ foo(bar());
153
+
let new_num_yes = /* #__PURE__ */ new foo(bar);
154
+
let new_num_no = /* #__PURE__ */ new foo(bar());
155
+
156
+
let nospace_num_yes = /*#__PURE__*/ foo(bar);
157
+
let nospace_num_no = /*#__PURE__*/ foo(bar());
158
+
let nospace_new_num_yes = /*#__PURE__*/ new foo(bar);
159
+
let nospace_new_num_no = /*#__PURE__*/ new foo(bar());
160
+
161
+
let dot_yes = /* @__PURE__ */ foo(sideEffect()).dot(bar);
162
+
let dot_no = /* @__PURE__ */ foo(sideEffect()).dot(bar());
163
+
let new_dot_yes = /* @__PURE__ */ new foo(sideEffect()).dot(bar);
164
+
let new_dot_no = /* @__PURE__ */ new foo(sideEffect()).dot(bar());
165
+
166
+
let nested_yes = [1, /* @__PURE__ */ foo(bar), 2];
167
+
let nested_no = [1, /* @__PURE__ */ foo(bar()), 2];
168
+
let new_nested_yes = [1, /* @__PURE__ */ new foo(bar), 2];
169
+
let new_nested_no = [1, /* @__PURE__ */ new foo(bar()), 2];
170
+
171
+
let single_at_yes = // @__PURE__
172
+
foo(bar);
173
+
let single_at_no = // @__PURE__
174
+
foo(bar());
175
+
let new_single_at_yes = // @__PURE__
176
+
new foo(bar);
177
+
let new_single_at_no = // @__PURE__
178
+
new foo(bar());
179
+
180
+
let single_num_yes = // #__PURE__
181
+
foo(bar);
182
+
let single_num_no = // #__PURE__
183
+
foo(bar());
184
+
let new_single_num_yes = // #__PURE__
185
+
new foo(bar);
186
+
let new_single_num_no = // #__PURE__
187
+
new foo(bar());
188
+
189
+
let bad_no = /* __PURE__ */ foo(bar);
190
+
let new_bad_no = /* __PURE__ */ new foo(bar);
191
+
192
+
let parens_no = (/* @__PURE__ */ foo)(bar);
193
+
let new_parens_no = new (/* @__PURE__ */ foo)(bar);
194
+
195
+
let exp_no = /* @__PURE__ */ foo() ** foo();
196
+
let new_exp_no = /* @__PURE__ */ new foo() ** foo();
0 commit comments