上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 115 下一页
摘要: https://www.jianshu.com/p/b66593151f0f https://www.babeljs.cn/docs/babel-types 阅读全文
posted @ 2022-02-05 19:05 AngDH 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 获取所有的前兄弟节点:path.getAllPrevSiblings() 获取前一个兄弟节点:path.getPrevSibling() 阅读全文
posted @ 2022-02-03 23:42 AngDH 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-02-02 14:59 AngDH 阅读(21) 评论(0) 推荐(0) 编辑
摘要: public class Temp { public static void print(int num) { for (int i = 31; i >= 0; i--) { System.out.print(((num & (1 << i)) == 0 ? "0" : "1")); } Syste 阅读全文
posted @ 2022-01-22 17:42 AngDH 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 对节点的属性们做浅层检查: BinaryExpression(path) { if (t.isIdentifier(path.node.left, { name: "n" })) { // ... } } 功能上等价于: BinaryExpression(path) { if ( path.node 阅读全文
posted @ 2022-01-17 20:32 AngDH 阅读(25) 评论(0) 推荐(0) 编辑
摘要: var _appendChild = Node.prototype.appendChild; Node.prototype.appendChild = function(){ console.log("Hook appendChild"); return _appendChild(); }; Nod 阅读全文
posted @ 2022-01-09 13:38 AngDH 阅读(115) 评论(0) 推荐(0) 编辑
摘要: const fs = require('fs'); const { parse } = require("@babel/parser"); const traverse = require("@babel/traverse").default; const types = require("@bab 阅读全文
posted @ 2022-01-09 13:21 AngDH 阅读(68) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/a3857fa5c899 const fs = require('fs'); const { parse } = require("@babel/parser"); const traverse = require("@babel/traverse 阅读全文
posted @ 2022-01-07 21:24 AngDH 阅读(328) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/a3857fa5c899 const fs = require('fs'); const { parse } = require("@babel/parser"); const traverse = require("@babel/traverse 阅读全文
posted @ 2022-01-07 20:33 AngDH 阅读(58) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/a3857fa5c899 const fs = require('fs'); const { parse } = require("@babel/parser"); const traverse = require("@babel/traverse 阅读全文
posted @ 2022-01-07 20:08 AngDH 阅读(44) 评论(0) 推荐(0) 编辑
上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 115 下一页