We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ast.js中walk调用cb会传入一个参数 exports.walk = function (node, cb) { if (node instanceof Array) { node.forEach(function (child) { cb(child); }); } else if (typeof node === 'object' && node !== null) { cb(node); } }; replaceOuter.js中_walk调用walk时的cb是不带参数的 function _walk(node, isExpression) { walk(node, function () { // replace this if (node.type === 'ThisExpression') { ... } 函数体中的node拿到的是_walk的第一个参数,是个数组
The text was updated successfully, but these errors were encountered:
No branches or pull requests
ast.js中walk调用cb会传入一个参数
exports.walk = function (node, cb) {
if (node instanceof Array) {
node.forEach(function (child) {
cb(child);
});
} else if (typeof node === 'object' && node !== null) {
cb(node);
}
};
replaceOuter.js中_walk调用walk时的cb是不带参数的
function _walk(node, isExpression) {
walk(node, function () {
// replace this
if (node.type === 'ThisExpression') {
...
}
函数体中的node拿到的是_walk的第一个参数,是个数组
The text was updated successfully, but these errors were encountered: