(file: string)
| 358 | if (matches.length === 0) return null; |
| 359 | |
| 360 | const componentIn = (file: string): string | null => { |
| 361 | const nodes = context.getNodesInFile(file); |
| 362 | const component = nodes.find((n) => n.kind === 'component' && n.name === name); |
| 363 | return component ? component.id : null; |
| 364 | }; |
| 365 | |
| 366 | // The referencing file's folder, or one below it, first for specificity |
| 367 | const sameDir = inReferencingFolder(fromFile, matches, (f) => f); |
no test coverage detected