( module: SourceModule, kept: KeptCode )
| 615 | |
| 616 | // oxc's minifier keeps the annotations of creations kept code reads |
| 617 | const keptAnnotationsIn = ( |
| 618 | module: SourceModule, |
| 619 | kept: KeptCode |
| 620 | ): [start: number, end: number][] => |
| 621 | keptCallsIn(module, kept).flatMap(({ call }) => { |
| 622 | const annotation = pureAnnotationOf(module.source, call) |
| 623 | return annotation ? [[call.start - annotation.length, call.start]] : [] |
| 624 | }) |
| 625 | |
| 626 | // whether a rewritten site's creation is one its scan found, which the function makes |
| 627 | const createsSame = ( |
no test coverage detected