(path string, line int)
| 70 | } |
| 71 | |
| 72 | func (b BoundaryIndex) commandAt(path string, line int) (string, bool) { |
| 73 | if b.Lines == nil { |
| 74 | return "", false |
| 75 | } |
| 76 | lines := b.Lines[filepath.ToSlash(path)] |
| 77 | if lines == nil { |
| 78 | return "", false |
| 79 | } |
| 80 | command, ok := lines[line] |
| 81 | return command, ok |
| 82 | } |
| 83 | |
| 84 | func CollectErrorFacts(path, src string, boundaries BoundaryIndex) ([]facts.ErrorFact, []report.Diagnostic) { |
| 85 | return CollectErrorFactsWithStructuredHelpers(path, src, boundaries, nil) |
no outgoing calls