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

Method GetBindDiagnostics

internal/compiler/program.go:648–657  ·  view source on GitHub ↗
(ctx context.Context, sourceFile *ast.SourceFile)

Source from the content-addressed store, hash-verified

646}
647
648func (p *Program) GetBindDiagnostics(ctx context.Context, sourceFile *ast.SourceFile) []*ast.Diagnostic {
649 if sourceFile != nil {
650 binder.BindSourceFile(sourceFile)
651 } else {
652 p.BindSourceFiles()
653 }
654 return p.collectDiagnostics(ctx, sourceFile, false /*concurrent*/, func(_ context.Context, file *ast.SourceFile) []*ast.Diagnostic {
655 return file.BindDiagnostics()
656 })
657}
658
659func (p *Program) GetSemanticDiagnostics(ctx context.Context, sourceFile *ast.SourceFile) []*ast.Diagnostic {
660 return p.collectCheckerDiagnostics(ctx, sourceFile, p.getSemanticDiagnosticsWithChecker)

Callers

nothing calls this directly

Calls 4

BindSourceFilesMethod · 0.95
collectDiagnosticsMethod · 0.95
BindSourceFileFunction · 0.92
BindDiagnosticsMethod · 0.80

Tested by

no test coverage detected