Return the type checker associated with the program.
(ctx context.Context)
| 464 | |
| 465 | // Return the type checker associated with the program. |
| 466 | func (p *Program) GetTypeChecker(ctx context.Context) (*checker.Checker, func()) { |
| 467 | if p.compilerCheckerPool != nil { |
| 468 | return p.compilerCheckerPool.getCheckerNonExclusive() |
| 469 | } |
| 470 | return p.checkerPool.GetChecker(ctx, nil) |
| 471 | } |
| 472 | |
| 473 | func (p *Program) ForEachCheckerParallel(cb func(idx int, c *checker.Checker)) { |
| 474 | if p.compilerCheckerPool != nil { |