improve SymbolDef info in `--output ast` (#2778)
authorkzc <kzc@users.noreply.github.com>
Sat, 13 Jan 2018 17:40:51 +0000 (12:40 -0500)
committerAlex Lam S.L <alexlamsl@gmail.com>
Sat, 13 Jan 2018 17:40:51 +0000 (01:40 +0800)
commit2cab34834191ea4fb48059e5725b631ff2752aa4
treec8e71b73ee1c506fcd38df781739d6f4115c68c1
parent460218a3f878fff658ca6c8e238f203866320b98
improve SymbolDef info in `--output ast` (#2778)

* SymbolDef info (a.k.a. `thedef`) is now represented as a string containing `"ID name [mangled_name]"`.
* Enhance display of `globals`, `variables`, `functions` and `enclosed`.
* `SymbolDef.next_id` starts at `1` and the `id` is adjusted for `-o ast` display.
bin/uglifyjs
lib/scope.js