mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 13:11:31 +03:00
790a262c07
swc_babel_ast: - Rename as `swc_estree_ast`. swc_babel_compat: - Rename as `swc_estree_compat`. swc_babel_visit: - Rename as `swc_estree_visit`.
15 lines
361 B
Bash
Executable File
15 lines
361 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
SCRIPT_DIR="`dirname "$0"`"
|
|
|
|
IFS='' # maintain whitespace
|
|
for filename in $SCRIPT_DIR/../src/ast/*.rs; do
|
|
while read -r line; do
|
|
[[ "$line" =~ ^[[:space:]]*$ ]] && continue
|
|
[[ "$line" =~ ^[[:space:]]*# ]] && continue
|
|
[[ "$line" =~ ^[[:space:]]*\/ ]] && continue
|
|
echo "$line"
|
|
done < "$filename"
|
|
done
|
|
|