(sourceCode: string)
| 197 | } |
| 198 | |
| 199 | export function parseCode<AllowErrors extends true|false = false>(sourceCode: string): AbiType<AllowErrors>[] { |
| 200 | const input = Parser.parseFile(sourceCode); |
| 201 | const handler = new ParserWrapper(input); |
| 202 | return handler.allStructs; |
| 203 | } |
| 204 | |
| 205 | export function parseCode2(sourceCode: string): { |
| 206 | functions: AbiFunction[]; |