|
|
|
@ -18,7 +18,7 @@ const visitor = {
|
|
|
|
|
|
|
|
|
|
const extraArgs = Array.prototype.slice.call( arguments, 1 );
|
|
|
|
|
|
|
|
|
|
visit( ...[ node.expression ].concat( extraArgs ) );
|
|
|
|
|
visit.apply( null, [ node.expression ].concat( extraArgs ) );
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -30,7 +30,7 @@ const visitor = {
|
|
|
|
|
|
|
|
|
|
node[ property ].forEach( child => {
|
|
|
|
|
|
|
|
|
|
visit( ...[ child ].concat( extraArgs ) );
|
|
|
|
|
visit.apply( null, [ child ].concat( extraArgs ) );
|
|
|
|
|
|
|
|
|
|
} );
|
|
|
|
|
|
|
|
|
@ -45,13 +45,13 @@ const visitor = {
|
|
|
|
|
|
|
|
|
|
if ( node.initializer ) {
|
|
|
|
|
|
|
|
|
|
visit( ...[ node.initializer ].concat( extraArgs ) );
|
|
|
|
|
visit.apply( null, [ node.initializer ].concat( extraArgs ) );
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
node.rules.forEach( rule => {
|
|
|
|
|
|
|
|
|
|
visit( ...[ rule ].concat( extraArgs ) );
|
|
|
|
|
visit.apply( null, [ rule ].concat( extraArgs ) );
|
|
|
|
|
|
|
|
|
|
} );
|
|
|
|
|
|
|
|
|
|