(source: string, through: (file: string) => boolean)
| 3620 | const mappings = context.getImportMappings(ref.filePath, ref.language); |
| 3621 | const relative = (source: string): boolean => source.startsWith('.') || source.startsWith('/'); |
| 3622 | const leadsTo = (source: string, through: (file: string) => boolean): boolean => { |
| 3623 | if (source === specifier) return answers; |
| 3624 | if (!relative(source)) return false; |
| 3625 | const file = resolveImportPath(source, ref.filePath, ref.language, context); |
| 3626 | return file !== null && (file === declaringFile || through(file)); |
| 3627 | }; |
| 3628 | const head = ref.referenceName.split('.')[0]!; |
| 3629 | const binding = mappings.find((m) => m.localName === head); |
| 3630 | if (binding) { |
no test coverage detected