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