module.exports = function({ types: t }) {
class Stats {
constructor(removed_count) {
this.removed_count = removed_count;
}
}
function is_console_method(name) {
return (((name === "log") || (name === "warn")) || (name === "error"));
}
let state = {};
return {
visitor: {
CallExpression(path) {
const node = path.node;
const callee = node.callee;
const args_count = node.arguments.length;
if ((args_count > 0)) {
for (const arg of node.arguments) {
const _temp = arg;
}
}
},
Identifier(path) {
const node = path.node;
const name = node.name;
if ((name === "oldName")) {
path.replaceWith({ name: "newName" });
}
}
}
};
};