oxc/crates/oxc_parser/src
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
..
js fix(parser): parse import source from 'mod' (#7833) 2024-12-13 10:26:36 +00:00
jsx refactor(parser): add ParserImpl::alloc method (#7063) 2024-11-01 17:09:06 +00:00
lexer style(rust): cargo +nightly fmt (#7877) 2024-12-14 06:03:31 +00:00
ts feat(parser): 'readonly' type modifier is only permitted on array and tuple literal types. (#7880) 2024-12-14 12:00:52 +00:00
context.rs feat(parser): parse decorators properly (#2603) 2024-03-04 19:30:41 +08:00
cursor.rs feat(ast)!: add StringLiteral::raw field (#7393) 2024-11-26 23:33:56 +08:00
diagnostics.rs feat(parser): 'readonly' type modifier is only permitted on array and tuple literal types. (#7880) 2024-12-14 12:00:52 +00:00
lib.rs refactor(parser): use ModuleRecord::has_module_syntax for setting sourceType (#7646) 2024-12-04 12:52:21 +00:00
modifiers.rs chore: Rust v1.83.0 changes (#7535) 2024-11-29 11:59:45 +08:00
module_record.rs feat(napi/parser): expose span positions of import.meta (#7677) 2024-12-05 11:03:52 +00:00
state.rs refactor(global): sort imports (#7883) 2024-12-14 15:07:21 +00:00