(block: string)
| 339 | .replace(/export (const|class) /gm, '$1 '); |
| 340 | |
| 341 | const parseCodeBlocks = (block: string) => |
| 342 | [...block.matchAll(FILE_BLOCKS)].map(([, info = '', content = '']) => ({ |
| 343 | content: content.trim(), |
| 344 | file: info.match(FILE_MATCH)?.[1], |
| 345 | info, |
| 346 | lang: info.trim().split(/\s+/, 1)[0] ?? '', |
| 347 | })); |
| 348 | |
| 349 | const splitImports = (source: string): [imports: string, body: string] => { |
| 350 | const lines = source.split('\n'); |
no outgoing calls
no test coverage detected
searching dependent graphs…