()
| 281 | } |
| 282 | |
| 283 | get level(): number { |
| 284 | if (this.parentNode instanceof ElementNode) { |
| 285 | return this.parentNode.level + (this.parentNode.node?.type === 'item' ? 1 : 0); |
| 286 | } |
| 287 | |
| 288 | return 0; |
| 289 | } |
| 290 | |
| 291 | /** |
| 292 | * Lazily gets a mutable instance of a Node. If the node has already |
nothing calls this directly
no outgoing calls
no test coverage detected