Move importing into visitor

This commit is contained in:
Luke Page
2013-02-25 19:20:47 +00:00
parent 39f669e83c
commit e63c8c5868
4 changed files with 15 additions and 16 deletions

View File

@@ -20,7 +20,7 @@
visitArgs;
if (func) {
visitArgs = {visitDeeper: true};
node = func(node, visitArgs);
node = func.call(this._implementation, node, visitArgs);
}
if ((!visitArgs || visitArgs.visitDeeper) && node && node.accept) {
node.accept(this);