()
| 88 | } |
| 89 | |
| 90 | generate() { |
| 91 | this.clearAnnotation() |
| 92 | if (pathAvailable && sourceMapAvailable && this.isMap()) { |
| 93 | return this.generateMap() |
| 94 | } else { |
| 95 | let result = '' |
| 96 | this.stringify(this.root, i => { |
| 97 | result += i |
| 98 | }) |
| 99 | return [result] |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | generateMap() { |
| 104 | if (this.root) { |
no test coverage detected