The file node of `file`, a path an import resolved to — none for a folder, an unindexed file or the importing file itself.
(file: string | null, ref: UnresolvedRef, context: ResolutionContext)
| 320 | |
| 321 | /** The file node of `file`, a path an import resolved to — none for a folder, an unindexed file or the importing file itself. */ |
| 322 | function moduleFileNode(file: string | null, ref: UnresolvedRef, context: ResolutionContext): Node | undefined { |
| 323 | return file && file !== ref.filePath ? context.getNodesInFile(file).find((n) => n.kind === 'file') : undefined; |
| 324 | } |
| 325 | |
| 326 | /** Does the reference's own file declare a function (or a const holding one) by that name? */ |
| 327 | function declaresOwnFunction(ref: UnresolvedRef, context: ResolutionContext): boolean { |
no test coverage detected