()
| 338 | } |
| 339 | |
| 340 | func (p *Program) initCheckerPool() { |
| 341 | if !p.finishedProcessing { |
| 342 | panic("Program must finish processing files before initializing checker pool") |
| 343 | } |
| 344 | |
| 345 | if p.opts.CreateCheckerPool != nil { |
| 346 | p.checkerPool = p.opts.CreateCheckerPool(p) |
| 347 | } else { |
| 348 | pool := newCheckerPoolWithTracing(p, p.opts.Tracing) |
| 349 | p.checkerPool = pool |
| 350 | p.compilerCheckerPool = pool |
| 351 | } |
| 352 | } |
| 353 | |
| 354 | // GetCheckerPool returns the checker pool associated with this program. |
| 355 | func (p *Program) GetCheckerPool() CheckerPool { |
no test coverage detected