| 3868 | typedef SourceFile::lines_t lines_t; |
| 3869 | |
| 3870 | lines_t get_snippet(const std::string& filename, unsigned line_start, unsigned context_size) |
| 3871 | { |
| 3872 | |
| 3873 | SourceFile& src_file = get_src_file(filename); |
| 3874 | unsigned start = line_start - context_size / 2; |
| 3875 | return src_file.get_lines(start, context_size); |
| 3876 | } |
| 3877 | |
| 3878 | lines_t get_combined_snippet( |
| 3879 | const std::string& filename_a, |
no test coverage detected