* fix: parameter expression closure should not have access to the declaration inside function body * fix: renameVisitor should skip when a pattern is a scope * address review comments
10 lines
149 B
JavaScript
10 lines
149 B
JavaScript
module.exports = function() {
|
|
return {
|
|
visitor: {
|
|
FunctionDeclaration(path) {
|
|
path.scope.rename("a", "z");
|
|
}
|
|
}
|
|
};
|
|
};
|