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

Method GetDeclarationDiagnostics

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

Source from the content-addressed store, hash-verified

1305}
1306
1307func (p *Program) GetDeclarationDiagnostics(ctx context.Context, sourceFile *ast.SourceFile) []*ast.Diagnostic {
1308 return p.collectDiagnostics(ctx, sourceFile, true /*concurrent*/, p.getDeclarationDiagnosticsForFile)
1309}
1310
1311func FilterNoEmitSemanticDiagnostics(diagnostics []*ast.Diagnostic, options *core.CompilerOptions) []*ast.Diagnostic {
1312 if !options.NoEmit.IsTrue() {

Callers

nothing calls this directly

Calls 1

collectDiagnosticsMethod · 0.95

Tested by

no test coverage detected