ecma-variable-scope:用于收集变量范围信息的 AST 实用程序

时间:2021-07-14 06:34:12
【文件属性】:
文件名称:ecma-variable-scope:用于收集变量范围信息的 AST 实用程序
文件大小:17KB
文件格式:ZIP
更新时间:2021-07-14 06:34:12
JavaScript ecma 变量范围 用于收集变量范围信息的 AST 实用程序 范围检测很难,尤其是当with存在时。 此实用程序提取所有相关信息以进行决策。 这个项目是作为一部分构建的,这是一个插件,使混淆的变量名称更易于理解。 特征: 检测with使用 不标记labels 支持let和const 支持解构变量(例如var {hello, world} = obj; ) 支持箭头表达式(例如(hello) => hello.world ) 入门 使用以下命令安装模块: npm install ecma-variable-scope // Gather an AST to analyze var esprima = require ( 'esprima' ) ; var ecmaVariableScope = require ( 'ecma-variable-scope' ) ; var a
【文件预览】:
ecma-variable-scope-master
----UNLICENSE(1KB)
----Gruntfile.js(920B)
----lib()
--------ecma-variable-scope.js(11KB)
----.travis.yml(418B)
----test()
--------utils()
--------with.js(2KB)
--------identifier.js(6KB)
--------lexical.js(5KB)
--------scope.js(3KB)
--------top-level.js(1KB)
--------block.js(6KB)
----README.md(8KB)
----docs()
--------getting-started.js(360B)
----.gitignore(24B)
----CHANGELOG.md(281B)
----package.json(2KB)

网友评论