lesx-ast-walk
v0.0.2
Published
acorn lesx ast walk
Downloads
2
Readme
lesx-ast-walk
acorn lesx ast walk。
example
import walk, { base } from 'lesx-ast-walk';
// base contains all the possible node walkers, see walk.js
// Program, BlockStatement, ExpressionStatement, SwitchStatement etc.
const source = 'const a = 2; const f = u => k => { const m = <div>Hey</div>; return m; }';
walk(source, {
VariableDeclaration: (node) => console.log(node),
});