(walker: TreeWalker)
| 319 | } |
| 320 | |
| 321 | function last(walker: TreeWalker) { |
| 322 | let next: FocusableElement | null = null; |
| 323 | let last: FocusableElement | null = null; |
| 324 | do { |
| 325 | last = walker.lastChild() as FocusableElement | null; |
| 326 | if (last) { |
| 327 | next = last; |
| 328 | } |
| 329 | } while (last); |
| 330 | return next; |
| 331 | } |
no test coverage detected