(walker: TreeWalker)
| 393 | } |
| 394 | |
| 395 | function last(walker: TreeWalker) { |
| 396 | let next: FocusableElement | null = null; |
| 397 | let last: FocusableElement | null = null; |
| 398 | do { |
| 399 | last = walker.lastChild() as FocusableElement | null; |
| 400 | if (last) { |
| 401 | next = last; |
| 402 | } |
| 403 | } while (last); |
| 404 | return next; |
| 405 | } |
no test coverage detected