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

Method GetTypeChecker

internal/compiler/program.go:466–471  ·  view source on GitHub ↗

Return the type checker associated with the program.

(ctx context.Context)

Source from the content-addressed store, hash-verified

464
465// Return the type checker associated with the program.
466func (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
473func (p *Program) ForEachCheckerParallel(cb func(idx int, c *checker.Checker)) {
474 if p.compilerCheckerPool != nil {

Callers 15

TestGetSymbolAtLocationFunction · 0.95
getRenameInfoForNodeMethod · 0.80
GetTypeOfSymbolMethod · 0.80
getOutgoingCallsMethod · 0.80
getAllImportCodeActionsFunction · 0.80
getFixInfosFunction · 0.80
getFixesInfoForUMDImportFunction · 0.80
getTypeOnlyPromotionFixFunction · 0.80

Calls 2

GetCheckerMethod · 0.65

Tested by 1

TestGetSymbolAtLocationFunction · 0.76