@ignored/analyzer
v0.0.4
Published
This is an N-API lib that exposes a single library, which takes a solidity source file's content, and returns its version pragmas and imports.
Downloads
28
Keywords
Readme
PLEASE IGNORE Solidity files analyzer
This is an N-API lib that exposes a single library, which takes a solidity source file's content, and returns its version pragmas and imports.
API
export interface AnalysisResult {
versionPragmas: Array<string>;
imports: Array<string>;
}
export function analyze(input: string): AnalysisResult;
TODO
- Add tests for malformed version import statements where it still works
- Add tests for malformed version pragma statements where it still works
- Add tests for error recovery