()
| 31 | } |
| 32 | |
| 33 | resolve(): string | undefined { |
| 34 | const lines = this._lines.reduce((lines: Array<string>, line: DocLines) => { |
| 35 | if (typeof line === 'function') line = line(ctx); |
| 36 | for (const l of typeof line === 'string' ? [line] : line) { |
| 37 | if (l || l === '') lines.push(l); |
| 38 | } |
| 39 | return lines; |
| 40 | }, []); |
| 41 | if (!lines.length) return; |
| 42 | return lines.join('\n'); |
| 43 | } |
| 44 | |
| 45 | override toAst() { |
| 46 | // Return a dummy comment node for compliance. |
no test coverage detected