UNPKG

solidity-comments

Version:

`solidity-comments` is an N-API library built in Rust, which exposes a single function, which takes the contents of a Solidity source file and returns its comments.

15 lines (12 loc) 268 B
/* tslint:disable */ /* eslint-disable */ /* auto-generated by NAPI-RS */ export interface Comment { start: number end: number text: string } export interface AnalysisResult { comments: Array<Comment> } export function analyze(input: string): AnalysisResult