(node: If | Else)
| 752 | } |
| 753 | |
| 754 | private _elseNode(node: If | Else): CodeGen { |
| 755 | const n = this._currNode |
| 756 | if (!(n instanceof If)) { |
| 757 | throw new Error('CodeGen: "else" without "if"') |
| 758 | } |
| 759 | this._currNode = n.else = node |
| 760 | return this |
| 761 | } |
| 762 | |
| 763 | private get _root(): Root { |
| 764 | return this._nodes[0] as Root |