(text: string, end: number)
| 31 | } |
| 32 | |
| 33 | export function getLineContent(text: string, end: number): { text: string, end: number } { |
| 34 | const trimmed = text.trimEnd() |
| 35 | return { |
| 36 | text: trimmed, |
| 37 | end: end - (text.length - trimmed.length), |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | export function formatBreakContext(text: string, breakOffset: number, radius = 32): string { |
| 42 | const start = Math.max(0, breakOffset - radius) |
no outgoing calls
no test coverage detected
searching dependent graphs…