(walker: ShadowTreeWalker | TreeWalker)
| 1050 | } |
| 1051 | |
| 1052 | function last(walker: ShadowTreeWalker | TreeWalker) { |
| 1053 | let next: FocusableElement | undefined = undefined; |
| 1054 | let last: FocusableElement; |
| 1055 | do { |
| 1056 | last = walker.lastChild() as FocusableElement; |
| 1057 | if (last) { |
| 1058 | next = last; |
| 1059 | } |
| 1060 | } while (last); |
| 1061 | return next; |
| 1062 | } |
| 1063 | |
| 1064 | class Tree { |
| 1065 | root: TreeNode; |
no test coverage detected