(nodeCount?: number)
| 703 | |
| 704 | // end the current self-balancing block |
| 705 | endBlock(nodeCount?: number): CodeGen { |
| 706 | const len = this._blockStarts.pop() |
| 707 | if (len === undefined) throw new Error("CodeGen: not in self-balancing block") |
| 708 | const toClose = this._nodes.length - len |
| 709 | if (toClose < 0 || (nodeCount !== undefined && toClose !== nodeCount)) { |
| 710 | throw new Error(`CodeGen: wrong number of nodes: ${toClose} vs ${nodeCount} expected`) |
| 711 | } |
| 712 | this._nodes.length = len |
| 713 | return this |
| 714 | } |
| 715 | |
| 716 | // `function` heading (or definition if funcBody is passed) |
| 717 | func(name: Name, args: Code = nil, async?: boolean, funcBody?: Block): CodeGen { |
no outgoing calls
no test coverage detected