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