transform-ast:使用源地图转换AST

时间:2021-05-12 17:01:47
【文件属性】:
文件名称:transform-ast:使用源地图转换AST
文件大小:15KB
文件格式:ZIP
更新时间:2021-05-12 17:01:47
ast JavaScript 转换AST 使用源地图转换AST。 基本上是@substack的,但是基于 。 例子 var result = require ( 'transform-ast' ) ( ` var multiply = (a, b) => { return a * b } var add = (a, b) => a + b ` , function ( node ) { if ( node . type === 'ArrowFunctionExpression' ) { var params = node . params . map ( function ( param ) { return param . getSource ( ) } ) if ( node . body . type !== 'BlockStatement' ) { node
【文件预览】:
transform-ast-master
----.gitignore(31B)
----package.json(1KB)
----.npmrc(19B)
----.travis.yml(542B)
----LICENSE(1KB)
----index.js(3KB)
----bench()
--------index.js(550B)
----.github()
--------dependabot.yml(143B)
----example()
--------arrows.js(599B)
--------custom-parser.js(667B)
----readme.md(4KB)
----test()
--------support()
--------source.js(1000B)
--------source-map.js(1KB)
--------ast.js(544B)
--------walk.js(833B)
--------falafel()

网友评论