()
| 205 | return context |
| 206 | }, |
| 207 | get parent() { |
| 208 | let parent = (this.path().pop() as Extract<AstNode, { nodes: AstNode[] }>) ?? null |
| 209 | |
| 210 | // Once computed, we never need to compute this again |
| 211 | Object.defineProperty(this, 'parent', { value: parent }) |
| 212 | return parent |
| 213 | }, |
| 214 | path() { |
| 215 | return ctx.path().filter((n) => n.kind !== 'context') |
| 216 | }, |