使用 acorn-walk 跟踪 AST 中的范围

iam*_*res 5 javascript abstract-syntax-tree acorn

我需要跟踪 AST 的范围,以便使用 JS 中的 acorn-walk 将所有表达式排列到层次结构中。文档很少,所以我很无能。感谢您的帮助!