(ctx context.Context, sourceFile *ast.SourceFile)
| 646 | } |
| 647 | |
| 648 | func (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 | |
| 659 | func (p *Program) GetSemanticDiagnostics(ctx context.Context, sourceFile *ast.SourceFile) []*ast.Diagnostic { |
| 660 | return p.collectCheckerDiagnostics(ctx, sourceFile, p.getSemanticDiagnosticsWithChecker) |
nothing calls this directly
no test coverage detected