@remix-project/remix-astwalker
Tool to walk through Solidity AST
Last updated 2 months ago by aniket-engg .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @remix-project/remix-astwalker 
SYNC missed versions from official npm registry.

Remix ASTwalker

remix-astwalker module walks through solidity AST and spits out AST nodes.

Example

import { AstWalker } from "remix-astwalker";

const astWalker = new AstWalker();
astWalker.on("node", node => {
  if (node.nodeType === "ContractDefinition") {
    checkContract(st, node);
  }

  if (node.nodeType === "PragmaDirective") {
    checkProgramDirective(st, node);
  }
});

For more examples see tests.

Current Tags

  • 0.0.26                                ...           latest (2 months ago)

2 Versions

  • 0.0.26                                ...           2 months ago
  • 0.0.25                                ...           4 months ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (9)
Dev Dependencies (1)

Copyright 2014 - 2016 © taobao.org |