oxc/crates/oxc_minifier/src/ast_passes
overlookmotel 3858221f45 refactor(global): sort imports (#7883)
Pure refactor. Re-order imports for clarity:

1. `std`
2. External crates
3. `oxc_*` crates
4. Current crate `use crate::...`
5. Super `use super::...`
6. Local modules

This order is from "furthest away" to "closest". This makes it clearer to see what is coming from where.

`cargo +nightly fmt` (#7877) did a lot of the work, but unfortunately `rustfmt` does not have an option to (a) put workspace crates in a separate block from external crates and (b) move `mod` statements to after `use` statements.
2024-12-14 15:07:21 +00:00
..
collapse_variable_declarations.rs refactor(minifier): improve ast passes (#7518) 2024-11-28 09:33:31 +00:00
exploit_assigns.rs chore: Rust v1.83.0 changes (#7535) 2024-11-29 11:59:45 +08:00
mod.rs refactor(global): sort imports (#7883) 2024-12-14 15:07:21 +00:00
peephole_fold_constants.rs style(rust): cargo +nightly fmt (#7877) 2024-12-14 06:03:31 +00:00
peephole_minimize_conditions.rs chore(minifier): temporary remove try_fold_if_block_one and try_fold_if_one_child (#7536) 2024-11-29 05:05:07 +00:00
peephole_remove_dead_code.rs style(rust): cargo +nightly fmt (#7877) 2024-12-14 06:03:31 +00:00
peephole_replace_known_methods.rs style(rust): cargo +nightly fmt (#7877) 2024-12-14 06:03:31 +00:00
peephole_substitute_alternate_syntax.rs refactor(ast)!: change 'raw' from &str to Option<Atom> (#7547) 2024-12-05 00:34:45 +00:00
remove_syntax.rs refactor(minifier): improve ast passes (#7518) 2024-11-28 09:33:31 +00:00
statement_fusion.rs chore: Rust v1.83.0 changes (#7535) 2024-11-29 11:59:45 +08:00