The file's nodes named `name`, in `getNodesInFile` order.
(filePath: string, name: string, context: ResolutionContext)
| 160 | |
| 161 | /** The file's nodes named `name`, in `getNodesInFile` order. */ |
| 162 | function nodesInFileNamed(filePath: string, name: string, context: ResolutionContext): Node[] { |
| 163 | return context.getNodesInFileNamed?.(filePath, name) ?? context.getNodesInFile(filePath).filter((n) => n.name === name); |
| 164 | } |
| 165 | |
| 166 | /** The declaration `export default NAME` names in this file (see FileExportIndex.defaultBinding). */ |
| 167 | function defaultExportBindingNode(filePath: string, idx: FileExportIndex, context: ResolutionContext): Node | undefined { |
no test coverage detected