mirror of
https://github.com/swc-project/swc.git
synced 2025-01-04 19:47:10 +03:00
9063908528
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> |
||
---|---|---|
.. | ||
ast | ||
codegen | ||
dep-graph | ||
ext-transforms | ||
jsdoc | ||
parser | ||
preset_env | ||
src | ||
transforms | ||
utils | ||
visit | ||
Cargo.toml |