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