remix-astwalker
TypeScript icon, indicating that this package has built-in type declarations

0.0.25 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i remix-astwalker

Weekly Downloads

1

Version

0.0.25

License

MIT

Unpacked Size

27.1 kB

Total Files

15

Last publish

Collaborators

  • ioedeveloper
  • bunsenstraat
  • grandschtroumpf
  • yann300
  • lianahus
  • aniket-engg
  • iurimatias
  • 0mkar