oxc/crates
overlookmotel aef593fb50
parser(refactor): promise only one Source on a thread at a time (#2340)
Introduce invariant that only a single `lexer::Source` can exist on a thread at one time.

This is a preparatory step for #2341.

2 notes:

Restriction is only 1 x `ParserImpl` / `Lexer` / `Source` on 1 *thread* at a time, not globally. So this does not prevent parsing multiple files simultaneously on different threads.

Restriction does not apply to public type `Parser`, only `ParserImpl`. `ParserImpl`s are not created in created in `Parser::new`, but instead in `Parser::parse`, where they're created and then immediately consumed. So the end user is also free to create multiple `Parser` instances (if they want to for some reason) on the same thread.
2024-02-08 14:51:17 +08:00
..
oxc Publish crates v0.6.0 2024-02-03 22:35:30 +08:00
oxc_allocator Publish crates v0.6.0 2024-02-03 22:35:30 +08:00
oxc_ast feat(ast): enter AstKind::ExportDefaultDeclaration, AstKind::ExportNamedDeclaration and AstKind::ExportAllDeclaration (#2317) 2024-02-05 17:43:30 +08:00
oxc_cli feat(cli): add --version (#2182) 2024-01-26 19:13:17 +08:00
oxc_codegen feat(codegen): avoid printing comma in ArrayAssignmentTarget if the elements is empty (#2331) 2024-02-06 22:45:19 +08:00
oxc_diagnostics Publish crates v0.6.0 2024-02-03 22:35:30 +08:00
oxc_index Publish crates v0.6.0 2024-02-03 22:35:30 +08:00
oxc_js_regex
oxc_language_server chore(deps): update cargo (#2191) 2024-01-29 11:38:47 +08:00
oxc_linter fix(linter): add missing typescript-eslint(_) prefix for some errors (#2342) 2024-02-08 14:28:56 +08:00
oxc_macros
oxc_minifier refactor(ast): fix BigInt memory leak by removing it (#2293) 2024-02-04 16:47:00 +08:00
oxc_parser parser(refactor): promise only one Source on a thread at a time (#2340) 2024-02-08 14:51:17 +08:00
oxc_prettier feat(prettier): Support TSImportEqualsDeclaration (#2321) 2024-02-05 20:37:26 +08:00
oxc_semantic feat(semantic): add export binding for ExportDefaultDeclarations in module record (#2329) 2024-02-06 22:01:16 +08:00
oxc_span feat(span): fix memory leak by implementing inlineable string for oxc_allocator (#2294) 2024-02-04 19:28:23 +08:00
oxc_syntax fix(semantic): remove unnecessary SymbolFlags::Import (#2311) 2024-02-05 14:16:29 +08:00
oxc_transformer Publish crates v0.6.0 2024-02-03 22:35:30 +08:00
oxc_wasm chore(wasm): remove console_error_panic_hook 2024-02-02 17:02:01 +08:00