(walker: ShadowTreeWalker | TreeWalker)
| 996 | } |
| 997 | |
| 998 | function last(walker: ShadowTreeWalker | TreeWalker) { |
| 999 | let next: FocusableElement | undefined = undefined; |
| 1000 | let last: FocusableElement; |
| 1001 | do { |
| 1002 | last = walker.lastChild() as FocusableElement; |
| 1003 | if (last) { |
| 1004 | next = last; |
| 1005 | } |
| 1006 | } while (last); |
| 1007 | return next; |
| 1008 | } |
| 1009 | |
| 1010 | class Tree { |
| 1011 | root: TreeNode; |
no test coverage detected