swc/crates/swc_estree_compat
Donny/강동윤 e7358e0f81 refactor(es): Use into for AST construction (#9197)
**Description:**

This PR changes the AST node construction code to use `.into()` or `::from()` to make changing the boxed-ness of the AST node easier. I used `ast-grep` to make large changes across codebase.
2024-07-12 13:13:20 +09:00
..
benches refactor(common): Drop SyntaxContext from AST nodes (#9175) 2024-07-12 13:13:20 +09:00
scripts chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
src refactor(es): Use into for AST construction (#9197) 2024-07-12 13:13:20 +09:00
tests refactor(common): Drop SyntaxContext from AST nodes (#9175) 2024-07-12 13:13:20 +09:00
Cargo.toml chore: Bump crates 2024-07-11 16:17:45 +00:00
README.md refactor(es/estree): Rename: babel => estree (#2846) 2021-11-24 05:34:41 +09:00

Convert SWC AST to Babel AST.

Testing

To run tests

cargo test

For more information about writing tests, see tests.