| 6428 | // The file node is not one of them: no section delivers "the file" as a |
| 6429 | // symbol, and it spans trailing lines no render prints. |
| 6430 | const wantedFrom = (nodes: readonly Node[]): ExploreWantedSpan[] => nodes |
| 6431 | .filter((n) => isListedSymbol(n) && n.kind !== 'file' && n.startLine > 0) |
| 6432 | .map((n) => ({ |
| 6433 | name: n.name, |
| 6434 | kind: n.kind, |
| 6435 | start: n.startLine, |
| 6436 | end: n.endLine, |
| 6437 | importance: entryNodeIds.has(n.id) ? 10 : flow.namedNodeIds.has(n.id) ? 9 : 1, |
| 6438 | spine: flow.pathNodeIds.has(n.id), |
| 6439 | qualifiedName: n.qualifiedName, |
| 6440 | })); |
| 6441 | const spareNamed = group.nodes.some(n => flow.uniqueNamedNodeIds.has(n.id)); |
| 6442 | const fileDefinesSuper = definesPolymorphicSupertype(group.nodes); |
| 6443 | const spared = spareNamed && !fileDefinesSuper; |