[walker] Allow recursive walks without building a new walker obj
This commit is contained in:
parent
cc5971f617
commit
e6485e61fd
@ -34,7 +34,7 @@
|
||||
// their child nodes (by calling their third argument on these
|
||||
// nodes).
|
||||
exports.recursive = function(node, state, funcs, base) {
|
||||
var visitor = exports.make(funcs, base);
|
||||
var visitor = funcs ? exports.make(funcs, base) : base;
|
||||
function c(node, st, override) {
|
||||
visitor[override || node.type](node, st, c);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user