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

Method panicIfNoProgram

internal/execute/incremental/program.go:70–74  ·  view source on GitHub ↗
(method string)

Source from the content-addressed store, hash-verified

68}
69
70func (p *Program) panicIfNoProgram(method string) {
71 if p.program == nil {
72 panic(method + ": should not be called without program")
73 }
74}
75
76func (p *Program) GetProgram() *compiler.Program {
77 p.panicIfNoProgram("GetProgram")

Callers 15

GetProgramMethod · 0.95
CommonSourceDirectoryMethod · 0.95
ProgramMethod · 0.95
GetSourceFilesMethod · 0.95
GetSourceFileMethod · 0.95
GetBindDiagnosticsMethod · 0.95
GetProgramDiagnosticsMethod · 0.95
GetGlobalDiagnosticsMethod · 0.95

Calls 1

panicFunction · 0.85

Tested by

no test coverage detected