rename-function-calls
Version:
Renames functions calls, but leaves function definitions unchanged.
24 lines (19 loc) • 333 B
JavaScript
// { "from": "xxx", "to": "x" }
;
function x() { }
function y() { }
function z() { }
var go = module.exports = function () {
xxx();
y();
z();
function nested() {
return xxx();
function oneMoreLevel () {
xxx(); z(); xxx();
}
}
function nestedExpression() {
return 1 + xxx();
}
};