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

Method initCheckerPool

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

Source from the content-addressed store, hash-verified

338}
339
340func (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.
355func (p *Program) GetCheckerPool() CheckerPool {

Callers 2

NewProgramFunction · 0.95
UpdateProgramMethod · 0.95

Calls 2

panicFunction · 0.85

Tested by

no test coverage detected