Donny/강동윤
9b76783281
refactor(common): Cleanup & rustfmt ( #3495 )
...
swc_common:
- Merge identical source codes.
swc_css_parser:
- Deny `clippy::all`.
- Fix lints.
2022-02-09 06:33:32 +00:00
Donny/강동윤
8bf5cf4d03
chore(es): Fix clippy warnings ( #3482 )
2022-02-08 19:50:22 +09:00
Donny/강동윤
2af5096e83
fix(es/resolver): Fix handling of for statements ( #3446 )
...
swc_ecma_transforms_base:
- `resolver`: Visit the body of a for statement in a nested visitor.
2022-02-04 14:13:32 +09:00
Donny/강동윤
839d0ac480
refactor(es/parser): Flatten tests to make git
faster ( #3393 )
2022-01-28 19:11:30 +09:00
Austaras
9e636c7e58
refactor(es): Add visit_obj_and_computed
macro ( #3304 )
2022-01-19 23:11:52 +09:00
Donny/강동윤
9a898951bc
fix(es/resolver): Ignore names of jsx attributes ( #3289 )
...
swc_ecma_transforms_base:
- Ignore names of jsx attributes. (Closes #2854 )
2022-01-17 16:18:07 +09:00
Donny/강동윤
2690742db0
refactor(es/transforms): Cleanup ( #3273 )
2022-01-15 15:36:40 +09:00
Donny/강동윤
978de5943e
chore(ci): Configure clippy
( #3250 )
2022-01-13 23:06:11 +09:00
Austaras
f58b50bea7
refactor(es/ast): Change types of member-like expressions ( #3178 )
...
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 ( #3194 )
...
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 #3193 )
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 ( #3192 )
2022-01-05 08:47:25 +09:00
magic-akari
52961804d1
feat(es/codegen): Make the output for empty objects and empty statements pretty ( #3171 )
2022-01-03 05:54:58 +09:00
Donny/강동윤
43c8cda31a
fix(es/renamer): Fix renamer ( #3139 )
...
swc_ecma_transforms_base:
- `resolver`: Ignore named export with source.
- `hygiene`: Ignore named export with source. (Closes #2924 , Closes #3114 )
swc_ecma_minifier:
- Handle `export default` declarations as declaration instead of expressions. (Closes #2717 )
- Don't override already-processed identifiers. (Closes #2988 )
swc_bundler:
- Adjust the syntax context for named re-exports.
2021-12-29 13:44:48 +09:00
Austaras
38955c0c8d
refactor(es/ast): Change type or the key
of ClassProp
to PropName
( #3038 )
2021-12-15 16:21:30 +09:00
Donny/강동윤
e48263b2f3
refactor(visit): Remove &dyn Node
from Visit
( #2984 )
...
swc_visit_macros:
- Remove `&dyn Node` from `Visit`.
- Implement `VisitWith<V>` for `[T]`.
2021-12-07 14:34:16 +09:00
Donny/강동윤
1ea965cecb
fix(es/parser): Drop outdated options ( #2974 )
...
swc_ecma_parser:
- Drop flags in `EsConfig`.
- Drop flags in `TsConfig`.
- Drop unused variants from `SyntaxError`.
2021-12-05 17:33:34 +09:00
David Sherret
97df4cef80
refactor(es/parser): Remove import_assertions
from TsConfig
( #2950 )
2021-12-05 05:43:41 +00:00
Donny/강동윤
7a6bf424c5
fix(es/transforms/base): Fix ts_resolver
( #2826 )
...
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
( #2824 )
...
swc_ecma_transforms_base:
- `ts_resolver`: Hoist interface declarations.
2021-11-21 15:47:38 +09:00
Donny/강동윤
2b2f6955f2
refactor: Flatten ecmascript
( #2708 )
2021-11-10 19:00:54 +09:00