WIP
This commit is contained in:
@@ -24,12 +24,10 @@
|
||||
console.timeEnd("parse");
|
||||
|
||||
console.time("walk");
|
||||
ast.walk({
|
||||
_visit: function(node, descend) {
|
||||
//console.log(node);
|
||||
if (descend) descend.call(node);
|
||||
}
|
||||
var w = new TreeWalker(function(node){
|
||||
console.log(node.TYPE + " [ start: " + node.start.line + ":" + node.start.col + ", end: " + node.end.line + ":" + node.end.col + "]");
|
||||
});
|
||||
ast.walk(w);
|
||||
console.timeEnd("walk");
|
||||
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user