minor cleanup
This commit is contained in:
parent
f0a29902ac
commit
67573d37e5
|
|
@ -169,10 +169,7 @@ var AST_SimpleStatement = DEFNODE("SimpleStatement", "body", {
|
||||||
}, AST_Statement);
|
}, AST_Statement);
|
||||||
|
|
||||||
function walk_body(node, visitor) {
|
function walk_body(node, visitor) {
|
||||||
var body = node.body;
|
node.body.forEach(function(node) {
|
||||||
if (body instanceof AST_Statement) {
|
|
||||||
body._walk(visitor);
|
|
||||||
} else body.forEach(function(node) {
|
|
||||||
node._walk(visitor);
|
node._walk(visitor);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user