The unit's own declaration of a name, seen from one of its files (see ownUnitFiles).
(fromFile: string, lower: string, context: ResolutionContext)
| 2394 | |
| 2395 | /** The unit's own declaration of a name, seen from one of its files (see ownUnitFiles). */ |
| 2396 | function ownUnitDeclaration(fromFile: string, lower: string, context: ResolutionContext): Node | undefined { |
| 2397 | for (const file of ownUnitFiles(fromFile, context)) { |
| 2398 | const decl = unitDeclaration(file, lower, context); |
| 2399 | if (decl) return decl; |
| 2400 | } |
| 2401 | return undefined; |
| 2402 | } |
| 2403 | |
| 2404 | /** |
| 2405 | * The files whose declarations are a file's unit's own, the file first: the |
no test coverage detected