Ordinal comparison. The determinism rule this project states everywhere.
(a: string, b: string)
| 329 | |
| 330 | /** Ordinal comparison. The determinism rule this project states everywhere. */ |
| 331 | function compareText(a: string, b: string): number { |
| 332 | if (a === b) { |
| 333 | return 0; |
| 334 | } |
| 335 | return a < b ? -1 : 1; |
| 336 | } |
| 337 | |
| 338 | function neighbourKey(entry: NeighbourFact): string { |
| 339 | return `${entry.direction}:${entry.qualifiedName ?? entry.name}`; |
no outgoing calls
no test coverage detected