swc/crates/swc_ecma_minifier/tests/terser/compress/sequences
Donny/강동윤 6a97c7bef8
fix(es/utils): Fix wrong apis (#4604)
# API Changes

## `swc_ecma_utils`

### Renames

 - `find_ids` => `find_pat_ids`
 - `prepend` => `prepend_stmt`
 - `as_bool` => `cast_to_bool`
 - `as_number` => `as_pure_number`
 - `as_string` => `cast_to_string`
 - (`as_pure_bool`, `cast_to_number` is not renamed)
 - `UsageFinder` => `IdentUsageFinder`.
 - `IdentFinder` => `IdentRefFinder`.

## Changes

 - Re-export of `HANDLER` from `swc_common::errors` is removed. Use `swc_common::error::HANDLER` instead.
 - Re-export of `Id` from `swc_ecma_ast` is removed. Use `swc_ecma_ast::Id` instead.
 - `ExprCtx` is used for apis related to `Expr`.
 - `preserve_effects` is now a method of `ExprCtx`. It was a top-level function.
 - `extract_side_effects_to` is now a method of `ExprCtx`. It was a top-level function.
 - `IdentUsageFinder` (previously `UsageFinder`) now takes `Id` instead of `Ident`.
 - `IdentRefFinder` (previously `IdentFinder`) now takes `Id` instead of `Ident`.
 - `ExprExt::is_ident_ref_to` is removed.
 - `Expr::is_global_ref_to` is added.
 - `:🆔:id` is removed. Use `Ident::to_id()` instead.
2022-05-11 04:36:22 +00:00
..
call feat(es/resolver): Use different syntax context for unresolved refs (#4436) 2022-04-26 07:38:50 +00:00
cascade_assignment_in_return feat(es/resolver): Use different syntax context for unresolved refs (#4436) 2022-04-26 07:38:50 +00:00
delete_seq_1 feat(es/minifier): Drop noop calls (#4019) 2022-03-15 16:23:32 +09:00
delete_seq_2 feat(es/minifier): Drop noop calls (#4019) 2022-03-15 16:23:32 +09:00
delete_seq_3 feat(es/minifier): Drop noop calls (#4019) 2022-03-15 16:23:32 +09:00
delete_seq_4 feat(es/resolver): Use different syntax context for unresolved refs (#4436) 2022-04-26 07:38:50 +00:00
delete_seq_5 feat(es/resolver): Use different syntax context for unresolved refs (#4436) 2022-04-26 07:38:50 +00:00
delete_seq_6 feat(es/resolver): Use different syntax context for unresolved refs (#4436) 2022-04-26 07:38:50 +00:00
for_init_var feat(es/resolver): Use different syntax context for unresolved refs (#4436) 2022-04-26 07:38:50 +00:00
for_sequences feat(es/minifier): Drop noop calls (#4019) 2022-03-15 16:23:32 +09:00
forin feat(es/resolver): Use different syntax context for unresolved refs (#4436) 2022-04-26 07:38:50 +00:00
func_def_1 feat(es/resolver): Use different syntax context for unresolved refs (#4436) 2022-04-26 07:38:50 +00:00
func_def_2 feat(es/minifier): Drop noop calls (#4019) 2022-03-15 16:23:32 +09:00
func_def_3 feat(es/resolver): Use different syntax context for unresolved refs (#4436) 2022-04-26 07:38:50 +00:00
func_def_4 feat(es/resolver): Use different syntax context for unresolved refs (#4436) 2022-04-26 07:38:50 +00:00
func_def_5 feat(es/resolver): Use different syntax context for unresolved refs (#4436) 2022-04-26 07:38:50 +00:00
hoist_decl feat(es/resolver): Use different syntax context for unresolved refs (#4436) 2022-04-26 07:38:50 +00:00
hoist_defun feat(es/resolver): Use different syntax context for unresolved refs (#4436) 2022-04-26 07:38:50 +00:00
iife feat(es/minifier): Drop noop calls (#4019) 2022-03-15 16:23:32 +09:00
issue_27 chore(es/minifier): Update terser test references (#4297) 2022-04-10 06:50:52 +00:00
issue_1685 feat(es/resolver): Use different syntax context for unresolved refs (#4436) 2022-04-26 07:38:50 +00:00
issue_1758 feat(es/minifier): Drop noop calls (#4019) 2022-03-15 16:23:32 +09:00
issue_2062 feat(es/resolver): Use different syntax context for unresolved refs (#4436) 2022-04-26 07:38:50 +00:00
issue_2313 feat(es/resolver): Use different syntax context for unresolved refs (#4436) 2022-04-26 07:38:50 +00:00
lift_sequences_1 feat(es/minifier): Drop noop calls (#4019) 2022-03-15 16:23:32 +09:00
lift_sequences_2 feat(es/resolver): Use different syntax context for unresolved refs (#4436) 2022-04-26 07:38:50 +00:00
lift_sequences_3 feat(es/minifier): Drop noop calls (#4019) 2022-03-15 16:23:32 +09:00
lift_sequences_4 feat(es/minifier): Drop noop calls (#4019) 2022-03-15 16:23:32 +09:00
lift_sequences_5 fix(es/minifier): Improve sequential inliner (#4570) 2022-05-08 06:12:42 +00:00
lift_sequences_6 feat(es/resolver): Use different syntax context for unresolved refs (#4436) 2022-04-26 07:38:50 +00:00
limit_1 feat(es/minifier): Drop noop calls (#4019) 2022-03-15 16:23:32 +09:00
limit_2 feat(es/minifier): Drop noop calls (#4019) 2022-03-15 16:23:32 +09:00
make_sequences_1 feat(es/minifier): Drop noop calls (#4019) 2022-03-15 16:23:32 +09:00
make_sequences_2 feat(es/minifier): Drop noop calls (#4019) 2022-03-15 16:23:32 +09:00
make_sequences_3 feat(es/resolver): Use different syntax context for unresolved refs (#4436) 2022-04-26 07:38:50 +00:00
make_sequences_4 feat(es/minifier): Drop noop calls (#4019) 2022-03-15 16:23:32 +09:00
negate_iife_for fix(es/utils): Fix wrong apis (#4604) 2022-05-11 04:36:22 +00:00
reassign_const feat(es/resolver): Use different syntax context for unresolved refs (#4436) 2022-04-26 07:38:50 +00:00
side_effects feat(es/minifier): Drop noop calls (#4019) 2022-03-15 16:23:32 +09:00
side_effects_cascade_1 feat(es/minifier): Drop noop calls (#4019) 2022-03-15 16:23:32 +09:00
side_effects_cascade_2 feat(es/minifier): Drop noop calls (#4019) 2022-03-15 16:23:32 +09:00
side_effects_cascade_3 feat(es/minifier): Drop noop calls (#4019) 2022-03-15 16:23:32 +09:00
unsafe_undefined feat(es/resolver): Use different syntax context for unresolved refs (#4436) 2022-04-26 07:38:50 +00:00