MCPcopy Create free account
hub / github.com/microsoft/typescript-go / GetBindDiagnostics

Method GetBindDiagnostics

internal/execute/incremental/program.go:133–136  ·  view source on GitHub ↗

GetBindDiagnostics implements compiler.AnyProgram interface.

(ctx context.Context, file *ast.SourceFile)

Source from the content-addressed store, hash-verified

131
132// GetBindDiagnostics implements compiler.AnyProgram interface.
133func (p *Program) GetBindDiagnostics(ctx context.Context, file *ast.SourceFile) []*ast.Diagnostic {
134 p.panicIfNoProgram("GetBindDiagnostics")
135 return p.program.GetBindDiagnostics(ctx, file)
136}
137
138func (p *Program) GetProgramDiagnostics() []*ast.Diagnostic {
139 p.panicIfNoProgram("GetProgramDiagnostics")

Callers

nothing calls this directly

Calls 2

panicIfNoProgramMethod · 0.95
GetBindDiagnosticsMethod · 0.65

Tested by

no test coverage detected