oxc/crates
Dunqing 02bfbfeef5 fix(codegen): preserve parenthesis for ChainExpression (#6430)
close: #6385

The fixing way was referenced from `esbuild`, it is according to these [states](332727499e/internal/js_ast/js_ast.go (L590-L604)
)(determined in the parser) to determine whether to print parenthesis

Due to differences in implementation details, we are unable to record certain information like `esbuild` does in its parser. But fortunately, The `ParenthesisExpression` AST is actually like what `esbuild` stored states.
2024-10-13 08:03:37 +00:00
..
oxc refactor(codegen)!: remove Codegen::enableSourceMap API (#6452) 2024-10-12 04:56:43 +00:00
oxc_allocator feat(allocator): add Vec::into_boxed_slice (#6195) 2024-10-12 04:29:43 +00:00
oxc_ast fix(codegen): preserve parenthesis for ChainExpression (#6430) 2024-10-13 08:03:37 +00:00
oxc_ast_macros release(crates): v0.31.0 (#6360) 2024-10-08 20:55:24 +08:00
oxc_cfg release(crates): v0.31.0 (#6360) 2024-10-08 20:55:24 +08:00
oxc_codegen fix(codegen): preserve parenthesis for ChainExpression (#6430) 2024-10-13 08:03:37 +00:00
oxc_data_structures release(crates): v0.31.0 (#6360) 2024-10-08 20:55:24 +08:00
oxc_diagnostics release(crates): v0.31.0 (#6360) 2024-10-08 20:55:24 +08:00
oxc_ecmascript feat(minifier): implement folding charAt string fns (#6436) 2024-10-13 06:41:05 +00:00
oxc_index release(crates): v0.31.0 (#6360) 2024-10-08 20:55:24 +08:00
oxc_isolated_declarations refactor(ecmascript): move ToInt32 from oxc_syntax to oxc_ecmascript (#6471) 2024-10-12 09:29:46 +00:00
oxc_language_server feat(oxc_language_server): add diagnostic code with link (#6487) 2024-10-13 07:07:43 +00:00
oxc_linter feat(linter): promote no_unsafe_optional_chaining to correctness (#6491) 2024-10-13 07:58:01 +00:00
oxc_macros feat(linter): add oxc-security/api-keys (#5906) 2024-09-22 22:39:56 +00:00
oxc_mangler feat(ast)! add source_text to Program (#6444) 2024-10-11 04:13:41 +00:00
oxc_minifier feat(minifier): implement folding charAt string fns (#6436) 2024-10-13 06:41:05 +00:00
oxc_module_lexer chore(oxc): rename crate oxc_syntax_operations to oxc_ecmascript (#6469) 2024-10-12 08:34:42 +00:00
oxc_parser feat(parser): better handling of invalid modifiers (#6482) 2024-10-13 03:16:02 +00:00
oxc_prettier refactor(prettier)!: remove source_text argument from constructor (#6448) 2024-10-11 06:27:33 +00:00
oxc_regular_expression feat(regular_expression): Support RegExp Modifiers (#6410) 2024-10-10 14:46:17 +00:00
oxc_semantic chore(oxc): rename crate oxc_syntax_operations to oxc_ecmascript (#6469) 2024-10-12 08:34:42 +00:00
oxc_sourcemap release(crates): v0.31.0 (#6360) 2024-10-08 20:55:24 +08:00
oxc_span docs(span): document validity of ModuleKind::Unambiguous (#6423) 2024-10-10 14:59:41 +00:00
oxc_syntax refactor(ecmascript): move ToInt32 from oxc_syntax to oxc_ecmascript (#6471) 2024-10-12 09:29:46 +00:00
oxc_transformer refactor(ecmascript): move ToInt32 from oxc_syntax to oxc_ecmascript (#6471) 2024-10-12 09:29:46 +00:00
oxc_traverse chore(oxc): rename crate oxc_syntax_operations to oxc_ecmascript (#6469) 2024-10-12 08:34:42 +00:00
oxc_wasm refactor(prettier)!: remove source_text argument from constructor (#6448) 2024-10-11 06:27:33 +00:00