(asm: string | ParsedAsmResultLine[] | undefined)
| 71 | * Handles the union type from CompilationInfo.asm safely. |
| 72 | */ |
| 73 | export function normalizeAsmToString(asm: string | ParsedAsmResultLine[] | undefined): string { |
| 74 | if (!asm) return ''; |
| 75 | return typeof asm === 'string' ? asm : extractTextLines(asm).join('\n'); |
| 76 | } |
| 77 | |
| 78 | /** |
| 79 | * Applies a function to each line of text split by `splitLines` |
nothing calls this directly
no test coverage detected