mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 19:22:32 +03:00
15 lines
361 B
Bash
15 lines
361 B
Bash
|
#!/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
|
||
|
|