()
| 3990 | context: ResolutionContext |
| 3991 | ): Node | undefined { |
| 3992 | const inFile = (): Node | undefined => (file ? findExportedSymbol(file, want, ref.language, context, new Set()) : undefined); |
| 3993 | const declared = isBareModuleSpecifier(source, ref.language) ? findAmbientModuleExport(source, want, ref, context) : undefined; |
| 3994 | if (!declared) return inFile(); |
| 3995 | return (isRepositoryModule(source, file, ref, context) ? inFile() : undefined) ?? declared; |
no test coverage detected