Closed mmun closed 9 years ago
There are more features coming for this visitor:
Statement
key is visited for any kind of Statement)this.remove()
or this.replace(nodes)
inside the node handlers)this.skip()
and this this.break()
)Nice!!! :star: :star: :star:
Implements a new visitor that fully traverses the AST. It was designed in the spirit of Babel's transform. Usage:
Alternatively, you can use the enter/exit format to capture when the node is entered and exited: