( id: string, removed: ReadonlySet<string>, annotations: ReadonlyMap<string, MigrationAnnotation> )
| 164 | } |
| 165 | |
| 166 | const isRemovalCoveredByModule = ( |
| 167 | id: string, |
| 168 | removed: ReadonlySet<string>, |
| 169 | annotations: ReadonlyMap<string, MigrationAnnotation> |
| 170 | ): boolean => { |
| 171 | const separator = id.indexOf("#") |
| 172 | const module = id.slice(0, separator) |
| 173 | if (separator === -1 || !removed.has(module) || annotations.get(module)?.replacement !== "none") { |
| 174 | return false |
| 175 | } |
| 176 | const annotation = annotations.get(id) |
| 177 | return annotation === undefined || annotation.replacement === "none" |
| 178 | } |
| 179 | |
| 180 | const migrationEntries = ( |
| 181 | diff: ApiDiff, |
no test coverage detected