()
| 195 | } |
| 196 | |
| 197 | getTsProgram(): ts.Program { |
| 198 | if (this.lastTsProgram !== null) { |
| 199 | return this.lastTsProgram; |
| 200 | } |
| 201 | if (this.oldProgram === null) { |
| 202 | throw new Error('No ts.Program has been created yet.'); |
| 203 | } |
| 204 | return this.oldProgram.getTsProgram(); |
| 205 | } |
| 206 | |
| 207 | getReuseTsProgram(): ts.Program { |
| 208 | if (this.oldProgram === null) { |
nothing calls this directly
no test coverage detected