(a: GraphNode, b: GraphNode)
| 15 | |
| 16 | const compareText = (a: string, b: string) => a < b ? -1 : a > b ? 1 : 0; |
| 17 | const compareNodes = (a: GraphNode, b: GraphNode) => compareText(a.file_path ?? '', b.file_path ?? '') |
| 18 | || (a.start_line ?? 0) - (b.start_line ?? 0) |
| 19 | || compareText(a.qualified_name ?? a.name, b.qualified_name ?? b.name) || a.id - b.id; |
| 20 | const definitionEdge = (type: string) => /^(DEFINES(?:_|$)|CONTAINS$|DECLARES$)/.test(type); |
| 21 | |
| 22 | /** File definitions and their direct relationships, using only the loaded graph. */ |
nothing calls this directly
no test coverage detected