mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-12 11:37:09 +08:00
AST操作之构造节点信息
This commit is contained in:
parent
dd77043268
commit
79b062c277
@ -40,4 +40,7 @@ traverse(ast, visitor);
|
||||
let {code} = generator(ast);
|
||||
console.log(code)
|
||||
```
|
||||
打印数据:
|
||||
|
||||
{ init: null }
|
||||
var a = 1 + 2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user