()
| 3569 | context: ResolutionContext |
| 3570 | ): Node | undefined { |
| 3571 | const inFile = (): Node | undefined => (file ? findExportedSymbol(file, want, ref.language, context, new Set()) : undefined); |
| 3572 | const declared = isBareModuleSpecifier(source, ref.language) ? findAmbientModuleExport(source, want, ref, context) : undefined; |
| 3573 | if (!declared) return inFile(); |
| 3574 | return (isRepositoryModule(source, file, ref, context) ? inFile() : undefined) ?? declared; |
no test coverage detected