oxc/crates
overlookmotel d0d708295b
refactor(parser): consume chars when parsing surrogate pair escape (#2243)
This fixes a mistake I made in #2237.

I was confused by the `!(...)` wrapping of the preceding `if` test and
missed that there are definitely 2 chars to consume, so can use
`consume_char()` instead of `next_char()`. This makes no difference to
behavior, but it follows the convention to always prefer
`consume_char()` when possible.

I've also refactored the code which confused me, so hopefully others
won't be confused too!
2024-02-01 11:34:26 +08:00
..
oxc feat(ast): TypeScript definition for wasm target (#2158) 2024-01-30 15:43:03 +08:00
oxc_allocator docs(allocator): document behaviour of Box 2024-01-29 21:34:45 +08:00
oxc_ast refactor(semantic): adding binder for ImportSpecifier replaces the ModuleDeclaration's binder (#2230) 2024-01-31 11:57:08 +08:00
oxc_cli feat(cli): add --version (#2182) 2024-01-26 19:13:17 +08:00
oxc_codegen feat(codegen): change back to read raw (#2222) 2024-01-31 12:17:52 +08:00
oxc_diagnostics Better source line and column numbers (#2213) 2024-01-30 12:26:16 +08:00
oxc_index Publish crates v0.5.0 2024-01-12 23:33:47 +08:00
oxc_js_regex Initialize JS Regex crates and def AST. (#1500) 2023-11-23 00:22:17 +08:00
oxc_language_server chore(deps): update cargo (#2191) 2024-01-29 11:38:47 +08:00
oxc_linter Use oxc's own graphical reporter for test snapshots (#2241) 2024-02-01 11:24:00 +08:00
oxc_macros feat(linter): remove the --timings feature (#2049) 2024-01-16 14:21:04 +08:00
oxc_minifier feat(codegen): move string test to codegen (#2150) 2024-01-23 23:49:36 +08:00
oxc_parser refactor(parser): consume chars when parsing surrogate pair escape (#2243) 2024-02-01 11:34:26 +08:00
oxc_prettier fix(codegen): print Directive original string (#2157) 2024-01-25 15:24:05 +08:00
oxc_semantic refactor(semantic): adding binder for ImportSpecifier replaces the ModuleDeclaration's binder (#2230) 2024-01-31 11:57:08 +08:00
oxc_span feat(ast): TypeScript definition for wasm target (#2158) 2024-01-30 15:43:03 +08:00
oxc_syntax feat(ast): remove serde skip for symbol_id and reference_id (#2220) 2024-01-30 21:03:05 +08:00
oxc_transformer feat(transformer/decorators): support static member (#2235) 2024-01-31 19:11:27 +08:00
oxc_wasm feat(ast): remove serde skip for symbol_id and reference_id (#2220) 2024-01-30 21:03:05 +08:00