Commit Graph

8 Commits

Author SHA1 Message Date
Austaras
f58b50bea7
refactor(es/ast): Change types of member-like expressions ()
swc_ecma_ast:
 - Split `MemberExpr` into `MemberExpr` and `SuperPropExpr`.
 - Use `Box<Expr>` for `MemberExpr.obj`.
 - Use ad-hoc type for `MemberExpr.prop`.
 - Use ad-hoc type for `SuperPropExpr.prop`.
 - Use `Callee` instead of  `ExprOrSpread` for `CallExpr`.
 - Simplify types for meta property expressions.
2022-01-10 13:54:42 +00:00
Donny/강동윤
913c82a2ab
fix(es/lints): Fix incorrect duplicate binding error ()
swc_ecma_transforms_base:
 - `resolver`: Fix resolving of `const` and `let`.

swc_ecma_lints:
 - `duplicate_bindings`: Don't mark ambient function declararions as a binding. (Closes )
2022-01-05 11:59:10 +09:00
David Sherret
517662c9c2
fix(es/visit): Make noop_visit_type visit typescript nodes that executes at runtime () 2022-01-05 08:47:25 +09:00
magic-akari
52961804d1
feat(es/codegen): Make the output for empty objects and empty statements pretty () 2022-01-03 05:54:58 +09:00
Austaras
38955c0c8d
refactor(es/ast): Change type or the key of ClassProp to PropName () 2021-12-15 16:21:30 +09:00
Donny/강동윤
7a6bf424c5
fix(es/transforms/base): Fix ts_resolver ()
swc_ecma_transforms_base:
 - `ts_resolver`: Hoist type aliases.
2021-11-21 16:31:12 +09:00
Donny/강동윤
9cd3d1610d
fix(es/transforms/base): Fix ts_resolver ()
swc_ecma_transforms_base:
 - `ts_resolver`: Hoist interface declarations.
2021-11-21 15:47:38 +09:00
Donny/강동윤
2b2f6955f2
refactor: Flatten ecmascript () 2021-11-10 19:00:54 +09:00