| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 6 年前 | ||
| 7 年前 | ||
| 7 年前 | ||
| 6 年前 | ||
| 5 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 7 年前 |
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.