(uri: string | undefined, line: number | undefined)
| 281 | |
| 282 | /** `validate.ts:19`, or just the file when the line is unrecorded. */ |
| 283 | export function locationLabel(uri: string | undefined, line: number | undefined): string | undefined { |
| 284 | const file = displayFile(uri); |
| 285 | if (file === undefined) { |
| 286 | return undefined; |
| 287 | } |
| 288 | return line === undefined ? file : `${file}:${line}`; |
| 289 | } |
| 290 | |
| 291 | /** |
| 292 | * A navigable reference to one line. |
no test coverage detected