Commit Graph

18 Commits

Author SHA1 Message Date
HeYunfei
508267dccf
fix(visit): Fix detection of Option<Vec<T>> (#6872) 2023-01-29 14:54:08 +00:00
Donny/강동윤
1a182ef8d9
perf(es): Optimize memory layout of AST (#5829) 2022-09-20 12:47:21 +09:00
滑威
17f1cee0a8
chore: Typo (#5239) 2022-07-18 02:17:48 +09:00
Donny/강동윤
d1418ee977
feat(visit): Implement serde for AstParentKind (#5191) 2022-07-13 01:34:02 +00:00
Donny/강동윤
4744d438a9
feat(visit): Improve API (#5185)
- Rename `AstKind` to `AstParentKind`.
 - Add `kind()` to `AstNodeRef`.
 - Reduce generic arguments of `AstNodePath`.
 - Remove `Opt*` from `AstParentKind` and `AstNodeRef`.
 - Add field enum for structs.
 - Add field enum for enums.
 - Change `Vec*` to a child kind.
 - Add field for the child field to `AstParentKind`.
 - Add field for the child field to `AstNodeRef`.
2022-07-12 11:26:51 +00:00
Donny/강동윤
ac3a55a435
feat(visit): Add index to AstKind (#5138)
- Make `VisitAstPath` take `AstNodePath<AstKind, AstNodeRef>`.
 - Add index to `AstKind::Vec*`.
2022-07-09 10:15:12 +00:00
Donny/강동윤
76de911466
doc(visit): Add docs for visitors (#5137) 2022-07-07 17:09:38 +09:00
Donny/강동윤
f26d59b770
feat(visit): Implement more traits for AstKind (#5135) 2022-07-07 06:16:24 +00:00
Donny/강동윤
46b1b42c3c
feat(visit): Implement Eq for AstKind (#5133) 2022-07-07 05:36:55 +00:00
Donny/강동윤
8ea631c766
doc(visit): Generate rustdoc (#5107) 2022-07-05 07:26:01 +00:00
Donny/강동윤
204d742ed6
feat(visit): Add path-aware variants (#5073) 2022-07-05 04:38:27 +00:00
Donny/강동윤
b0b5d5d0c2
feat(visit): Allow using ?Sized as visitor (#3745) 2022-02-25 20:56:51 +00:00
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
LongYinan
9608605772
build(node-swc): Fix GLIBC < 2.18 compatible issues and android arm binary loading issue (#3314) 2022-01-20 02:21:24 +00:00
Donny/강동윤
15b604b6d6
refactor(*): Fix some clippy warnings (#3257) 2022-01-14 07:20:45 +09:00
Donny/강동윤
978de5943e
chore(ci): Configure clippy (#3250) 2022-01-13 23:06:11 +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/강동윤
4f70ee6d98
refactor: Flatten more packages (#2706) 2021-11-10 16:39:01 +09:00