MCPcopy Index your code
hub / github.com/microsoft/typescript-go / BindSourceFiles

Method BindSourceFiles

internal/compiler/program.go:450–463  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

448}
449
450func (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.
466func (p *Program) GetTypeChecker(ctx context.Context) (*checker.Checker, func()) {

Callers 1

GetBindDiagnosticsMethod · 0.95

Calls 9

SingleThreadedMethod · 0.95
QueueMethod · 0.95
RunAndWaitMethod · 0.95
NewWorkGroupFunction · 0.92
BindSourceFileFunction · 0.92
IsBoundMethod · 0.80
PathMethod · 0.65
stringEnum · 0.50
PushMethod · 0.45

Tested by

no test coverage detected