(outline: readonly WireOutlineEntry[], line: number)
| 187 | * landing uses. |
| 188 | */ |
| 189 | export function ownerAt(outline: readonly WireOutlineEntry[], line: number): string | null { |
| 190 | let owner: string | null = null; |
| 191 | for (const entry of outline) { |
| 192 | if (entry.line > line) break; |
| 193 | if (line <= entry.endLine) owner = entry.id; |
| 194 | } |
| 195 | return owner; |
| 196 | } |
| 197 | |
| 198 | /* ---------------------------------------------------------------- ports -- */ |
| 199 |
no outgoing calls
no test coverage detected