New Programs Makers

    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.

    Install

    npm i remix-astwalker

    DownloadsWeekly Downloads

    8

    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