oxc/crates/oxc_parser/src
overlookmotel 56ae615b6e perf(parser): make not at EOF the hot path in Source methods (#4576)
Reverse `if` arms in 2 very commonly-called methods in `Source` so that "not at EOF" is the first branch. This will encourage compiler to treat EOF as the cold branch (which it should be, as we're almost never at EOF).
2024-07-31 03:33:02 +00:00
..
js fix(parser): fix enum member parsing (#4543) 2024-07-30 10:43:09 +00:00
jsx refactor(ast/ast_builder)!: shorter allocator utility method names. (#4122) 2024-07-09 12:16:38 +00:00
lexer perf(parser): make not at EOF the hot path in Source methods (#4576) 2024-07-31 03:33:02 +00:00
ts fix(parser): fix enum member parsing (#4543) 2024-07-30 10:43:09 +00:00
context.rs feat(parser): parse decorators properly (#2603) 2024-03-04 19:30:41 +08:00
cursor.rs chore: remove unsafe_code = "warn" rust lint 2024-07-15 10:39:08 +08:00
diagnostics.rs fix(parser): fix enum member parsing (#4543) 2024-07-30 10:43:09 +00:00
lib.rs fix(ast): visit Programs hashbang field first (#4368) 2024-07-19 16:27:51 +00:00
modifiers.rs fix(parser): avoid crashing on invalid const modifier (#4267) 2024-07-15 11:37:31 +00:00
state.rs chore: improve some format by running cargo +nightly fmt 2024-06-19 00:48:30 +08:00