( src: string, tag: string )
| 7 | import crypto from 'crypto'; |
| 8 | |
| 9 | function getGeneratedSectionIndexes( |
| 10 | src: string, |
| 11 | tag: string |
| 12 | ): { contents: string[]; start: number; end: number } { |
| 13 | const contents = src.split('\n'); |
| 14 | const start = contents.findIndex((line) => line.includes(`@generated begin ${tag}`)); |
| 15 | const end = contents.findIndex((line) => line.includes(`@generated end ${tag}`)); |
| 16 | |
| 17 | return { contents, start, end }; |
| 18 | } |
| 19 | |
| 20 | export type MergeResults = { |
| 21 | contents: string; |
no outgoing calls
no test coverage detected