aboutsummaryrefslogtreecommitdiff
path: root/tmp/browser.js
blob: 7972d34624f37f15929699ca87b0bba0ab4a1265 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
var func = function TEST () {
    
};

console.time("parse");
var ast = parse(func.toString());
console.timeEnd("parse");



ast.walk({
    _visit: function(node, descend) {
        console.log(node);
        console.log(node.TYPE, ":", node.start.pos);
        if (descend) descend.call(node);
    }
});