jack e1a2621c78 update | 2 yıl önce | |
---|---|---|
.. | ||
LICENSE | 2 yıl önce | |
README.md | 2 yıl önce | |
ordered-ast-traverse.js | 2 yıl önce | |
package.json | 2 yıl önce |
Simple but flexible lexically ordered AST traversal with pre and post visitors.
Same as ast-traverse but instead of visiting everything that looks like an AST node, nodes are visited according to ordered-esprima-props.
The result is that the AST traversal happens in lexical order, i.e. an AST-traversal in this order will visit nodes in increasing source code position. It works with any Mozilla Parser API compatible AST, including those generated by Esprima and Acorn, see https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Parser_API
MIT
, see LICENSE file.