oxc/crates/oxc_minifier/src/ast_passes
7086cmd a2977655c8 refactor(minifier): use map and and_then instead of let else (#7178)
For the test case, Closure Compiler doesn't handle this at all in the REPL! If it's necessary, I will turn it back.

This PR uses builtin `and_then` and `map` method, which is better instead of a lot of `if let Some`.
2024-11-09 11:48:48 +00:00
..
collapse_variable_declarations.rs refactor(minifier): remove extra compress options (#6893) 2024-10-26 01:30:13 +00:00
exploit_assigns.rs fix(minifier): correct the reference link (#6283) 2024-10-05 08:54:59 +08:00
mod.rs feat(ecmascript): add ConstantEvaluation (#6549) 2024-10-14 07:53:44 +00:00
peephole_fold_constants.rs refactor(minifier): remove Tri, use Option<bool> instead (#6912) 2024-10-26 04:28:34 +00:00
peephole_minimize_conditions.rs chore(minifier): remove duplicate minifier test (#6792) 2024-10-23 04:07:50 +00:00
peephole_remove_dead_code.rs refactor(minifier): do not use AstBuilder::*_from_* methods (#7072) 2024-11-02 01:22:56 +00:00
peephole_replace_known_methods.rs refactor(minifier): use map and and_then instead of let else (#7178) 2024-11-09 11:48:48 +00:00
peephole_substitute_alternate_syntax.rs refactor(minifier): use map and and_then instead of let else (#7178) 2024-11-09 11:48:48 +00:00
remove_syntax.rs feat(ast): allow passing span to void_0 method (#6065) 2024-09-26 05:46:40 +00:00
statement_fusion.rs refactor(minifier): do not use AstBuilder::*_from_* methods (#7072) 2024-11-02 01:22:56 +00:00