Commit Graph

25 Commits

Author SHA1 Message Date
Austaras
31ffd5a01d
fix(es/renamer): Use a separate scope for the name of FnExpr () 2022-10-01 12:33:19 +09:00
magic-akari
bee26a9abb
fix(es/compat): Fix destructuring assignments and updates of super properties () 2022-08-22 00:42:50 +00:00
Austaras
b717a68199
fix(es/compat): Use separate SyntaxContext for class names () 2022-08-19 13:01:50 +00:00
Donny/강동윤
b9933b159a
feat(es/compat): Fix syntax context of transpiled class methods () 2022-08-16 13:07:27 +00:00
Austaras
5a06271116
feat(es/compat): Add pure comments for generator and async transform () 2022-08-12 13:39:26 +00:00
Austaras
375774d31e
fix(es): Check the syntax context of arguments () 2022-07-13 10:29:03 +00:00
magic-akari
dd39a798ae
fix(es/compat): Preserve more class names () 2022-07-06 05:18:40 +00:00
Austaras
adbb0bf8d8
fix(es/compat): Preserve class names () 2022-07-04 14:37:03 +00:00
Austaras
25bd520620
fix(es/compat): Handle classes with accessors and a method with the same name () 2022-06-28 05:36:22 +00:00
Donny/강동윤
36d960c7e9
perf(es/hygiene): Make hygiene faster () 2022-06-15 14:36:57 +00:00
Donny/강동윤
53610fdafc
feat(es/resolver): Use different syntax context for unresolved refs ()
- We don't need a list of bindings to check if an identifier is unresolved.
 - Checking if an identifier is unresolved is now one CPU instruction.
   - Previously it was one hashmap operation.
 - This PR also improves performance, by removing the hashmaps mentioned above.
2022-04-26 07:38:50 +00:00
那里好脏不可以
37a8c90750
chore(*): Typo + fomatting () 2022-04-11 18:45:58 +00:00
Alexander Akait
634d732803
feat(es/ast): Add raw to Str () 2022-03-22 07:54:08 +00:00
Austaras
de8a7116cd
fix(es/compat): Refer this in constructor when super_is_callable_constructor is set () 2022-03-10 13:52:54 +00:00
Austaras
112f428734
feat(es/compat): Add pure comments for class fields keys () 2022-03-10 07:13:58 +00:00
magic-akari
c7f2bdb813
feat(es/compat): Implement loose mode for async_to_generator () 2022-03-05 19:32:59 +00:00
Donny/강동윤
406b8eaeaf
fix(es/compat): Fix block scoping of variables () 2022-03-03 10:51:45 +00:00
Donny/강동윤
814dcc09d6
test(es/compat): Organize tests () 2022-03-03 05:51:09 +00:00
Austaras
14155eb0e7
feat(es/compat): Implement loose mode for class_properties () 2022-02-27 00:09:02 +09:00
Austaras
0f7a99787f
feat(es/compat): Add loose mode for classes () 2022-02-15 04:02:08 +00:00
Austaras
0b162102fa fix(es/compat): Fix handling of constructor in classes ()
swc_ecma_transforms_compat:
 - Use `SuperFieldAccessFolder` for `super` fields in constructors.
 - Fix handling of variables in constructors with the same name as the class name.
 - Fix handling of functions in constructors with this/super.
2022-02-14 18:14:55 +09:00
Donny/강동윤
9b76783281
refactor(common): Cleanup & rustfmt ()
swc_common:
 - Merge identical source codes.

swc_css_parser:
 - Deny `clippy::all`.
 - Fix lints.
2022-02-09 06:33:32 +00:00
magic-akari
a1cb4a4aa5
fix(es/compat): Fix handling of class methods with a big int as a key () 2021-12-25 14:46:56 +00:00
Austaras
dc58122283
feat(es/transforms/compat): Add more loose mode ()
swc_ecma_transforms_compat:
- `computed_properties`: Add loose mode.
- `template_literals`: Add loose mode.
- `object_spread`: Add loose mode.
- `optional_chaining`: Add loose mode.
- `nullish_coalescing`: Add loose mode.
- `optional_chaining`: Fix .
2021-11-15 14:31:21 +09:00
Donny/강동윤
2b2f6955f2
refactor: Flatten ecmascript () 2021-11-10 19:00:54 +09:00