fd1758ac创建于 2020年9月9日历史提交
文件最后提交记录最后更新时间
6 年前
7 年前
7 年前
6 年前
5 年前
6 年前
6 年前
7 年前
README

The project has been moved to https://github.com/ethereum/remix-project/tree/master/libs/remix-astwalker

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.