(source: string)
| 759 | } |
| 760 | |
| 761 | function getLineStarts(source: string): number[] { |
| 762 | const starts = [0]; |
| 763 | for (let i = 0; i < source.length; i++) { |
| 764 | if (source[i] === "\n") starts.push(i + 1); |
| 765 | } |
| 766 | return starts; |
| 767 | } |
| 768 | |
| 769 | function getNodeIndex(node: any, edge: "start" | "end", lineStarts: number[]): number | null { |
| 770 | const direct = edge === "start" ? node.start : node.end; |
no outgoing calls
no test coverage detected