swc/ecmascript
Maxime Guerreiro 9063908528
feat(ecmascript/codegen): fix and use omit_trailing_semi (#1298)
swc_ecma_codegen:
- Use omit_trailing_semi in 'assert_min' tests, to identify bugs. Before this,
  no code was using this method - and it had some serious bugs.
- Omit semicolons when writing punctuation, as it's permitted to do so.
- Use two macros ('semi', 'formatting_semi') to distinguish between required
  semicolons, as used in for(...), and optional ones that are used between
  statements.

This commit does not enforce the use of omit_trailing_semi when cfg.minify is
used (except in tests using assert_min), and as such should not modify the
behavior of existing apps. This is confirmed by the Test262 suite passing
without changes.

Co-authored-by: 강동윤 <kdy1@dudy.kr>
2020-12-29 11:56:38 +09:00
..
ast fix(swc): Fixes for typescript type checker (#1146) 2020-12-27 18:18:30 +09:00
codegen feat(ecmascript/codegen): fix and use omit_trailing_semi (#1298) 2020-12-29 11:56:38 +09:00
dep-graph fix(ecmascript): Fix bugs related to string literals (#1287) 2020-12-22 04:27:18 +09:00
ext-transforms Fix jest extension (#1106) 2020-09-24 19:49:12 +09:00
jsdoc fix(ecmascript): Fix bugs related to string literals (#1287) 2020-12-22 04:27:18 +09:00
parser fix(swc): Fixes for typescript type checker (#1146) 2020-12-27 18:18:30 +09:00
preset_env fix(ecmascript): Fix bugs related to string literals (#1287) 2020-12-22 04:27:18 +09:00
src fix: expose dep_graph crate (#1023) 2020-09-03 22:46:41 +09:00
transforms fix(bundler): Fix remaining bugs (#1296) 2020-12-28 19:53:40 +09:00
utils fix(ecmascript): Fix bugs related to string literals (#1287) 2020-12-22 04:27:18 +09:00
visit fix(ecmascript): Fix bugs related to string literals (#1287) 2020-12-22 04:27:18 +09:00
Cargo.toml fix(bundler): Fix remaining bugs (#1296) 2020-12-28 19:53:40 +09:00