摘要: 对节点的属性们做浅层检查: BinaryExpression(path) { if (t.isIdentifier(path.node.left, { name: "n" })) { // ... } } 功能上等价于: BinaryExpression(path) { if ( path.node 阅读全文
posted @ 2022-01-17 20:32 AngDH 阅读(24) 评论(0) 推荐(0) 编辑