oxc/crates/oxc_codegen/tests/integration
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
..
snapshots refactor(codegen): only print necessary parentheses in TSAsExpression (#6429) 2024-10-11 02:04:27 +00:00
esbuild.rs fix(codegen): preserve parenthesis for ChainExpression (#6430) 2024-10-13 08:03:37 +00:00
jsdoc.rs fix(codegen): preserve newlines between comments (#6014) 2024-09-24 05:14:02 +00:00
main.rs refactor(codegen)!: remove CommentOptions API (#6451) 2024-10-11 13:53:28 +00:00
pure_comments.rs chore(codegen): add more tests for comments from esbuild (#6357) 2024-10-08 05:42:43 +00:00
tester.rs refactor(codegen)!: remove CommentOptions API (#6451) 2024-10-11 13:53:28 +00:00
ts.rs refactor(codegen): only print necessary parentheses in TSAsExpression (#6429) 2024-10-11 02:04:27 +00:00
unit.rs fix(codegen): invalid codegen when in inside bin expr in or loop (#6431) 2024-10-13 06:47:10 +00:00