| 37 | } |
| 38 | |
| 39 | async writeAsmFile( |
| 40 | asmParser: IAsmParser, |
| 41 | asm: string | any[], |
| 42 | filters: ParseFiltersAndOutputOptions, |
| 43 | destination: string, |
| 44 | ) { |
| 45 | // Applying same filters as applied to compiler output |
| 46 | const asmString = utils.normalizeAsmToString(asm); |
| 47 | const filteredAsm = asmParser.process(asmString, filters).asm.reduce((acc, line) => acc + line.text + '\n', ''); |
| 48 | return fs.writeFile(destination, filteredAsm); |
| 49 | } |
| 50 | |
| 51 | override async runTool(compilationInfo: CompilationInfo, inputFilepath?: string, args?: string[]) { |
| 52 | if (compilationInfo.filters.binary) { |