(node: SplootNode, start: SplootNode, end: SplootNode)
| 207 | } |
| 208 | |
| 209 | isChildBetween(node: SplootNode, start: SplootNode, end: SplootNode): boolean { |
| 210 | const idx = this.children.indexOf(node) |
| 211 | if (idx === -1) { |
| 212 | return false |
| 213 | } |
| 214 | |
| 215 | const startIdx = this.children.indexOf(start) |
| 216 | const endIdx = this.children.indexOf(end) |
| 217 | return idx > startIdx && idx < endIdx |
| 218 | } |
| 219 | |
| 220 | getRightmostChild(): SplootNode { |
| 221 | return this.children[this.children.length - 1] |
nothing calls this directly
no outgoing calls
no test coverage detected