(ids: Set<number>, edges: readonly GraphEdge[])
| 15 | |
| 16 | /** Frame incident relationships without selecting their unrelated second-hop edges. */ |
| 17 | export function readerFocusFrame(ids: Set<number>, edges: readonly GraphEdge[]): Set<number> { |
| 18 | const frame = new Set(ids); |
| 19 | for (const edge of edges) { |
| 20 | if (ids.has(edge.source) || ids.has(edge.target)) { |
| 21 | frame.add(edge.source); |
| 22 | frame.add(edge.target); |
| 23 | } |
| 24 | } |
| 25 | return frame; |
| 26 | } |
| 27 | |
| 28 | export function symbolMatchesReader(symbol: SymbolRef | undefined, filePath: string, range?: SourceFocusRange): boolean { |
| 29 | if (!symbol || !filePath || normalizedPath(symbol.uri) !== normalizedPath(filePath)) return false; |
no outgoing calls
no test coverage detected