()
| 448 | } |
| 449 | |
| 450 | func (p *Program) BindSourceFiles() { |
| 451 | wg := core.NewWorkGroup(p.SingleThreaded()) |
| 452 | for _, file := range p.files { |
| 453 | if !file.IsBound() { |
| 454 | wg.Queue(func() { |
| 455 | if p.opts.Tracing != nil { |
| 456 | defer p.opts.Tracing.Push(tracing.PhaseBind, "bindSourceFile", map[string]any{"path": string(file.Path())}, true)() |
| 457 | } |
| 458 | binder.BindSourceFile(file) |
| 459 | }) |
| 460 | } |
| 461 | } |
| 462 | wg.RunAndWait() |
| 463 | } |
| 464 | |
| 465 | // Return the type checker associated with the program. |
| 466 | func (p *Program) GetTypeChecker(ctx context.Context) (*checker.Checker, func()) { |
no test coverage detected