remix-astwalker

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
r

remix-astwalker

Remix sub-module for walking through AST

0.0.25
latest
72

Supply Chain Security

100

Vulnerability

72

Quality

83

Maintenance

100

License

Repository has been archived by the owner.
Version published
Weekly downloads
0
Maintainers
6
Weekly downloads
 
Created

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.

FAQs

Package last updated on 26 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts