|
|
|
@ -18,9 +18,7 @@ function removeProxyRules(ast, options) {
|
|
|
|
|
|
|
|
|
|
function replaceInSubnodes(propertyName) {
|
|
|
|
|
return function(node, from, to) {
|
|
|
|
|
arrays.each(node[propertyName], function(subnode) {
|
|
|
|
|
replace(subnode, from, to);
|
|
|
|
|
});
|
|
|
|
|
arrays.each(node[propertyName], function(n) { replace(n, from, to); });
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -69,9 +67,7 @@ function removeProxyRules(ast, options) {
|
|
|
|
|
|
|
|
|
|
indices.reverse();
|
|
|
|
|
|
|
|
|
|
arrays.each(indices, function(index) {
|
|
|
|
|
ast.rules.splice(index, 1);
|
|
|
|
|
});
|
|
|
|
|
arrays.each(indices, function(i) { ast.rules.splice(i, 1); });
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
module.exports = removeProxyRules;
|
|
|
|
|