(walker: TreeWalker)
| 416 | } |
| 417 | |
| 418 | function last(walker: TreeWalker) { |
| 419 | let next: FocusableElement | null = null; |
| 420 | let last: FocusableElement | null = null; |
| 421 | do { |
| 422 | last = walker.lastChild() as FocusableElement | null; |
| 423 | if (last) { |
| 424 | next = last; |
| 425 | } |
| 426 | } while (last); |
| 427 | return next; |
| 428 | } |
no test coverage detected