swc/crates/swc_visit/scripts/expand.sh
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

7 lines
112 B
Bash
Executable File

#!/usr/bin/env bash
set -eu
export DBG_DUMP=1
cargo expand --features path --test vec_opt > tests/expanded.rs