|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Render-ready excerpt for a single source line. More...
#include <ah-source.H>
Public Attributes | |
| std::string | file_name |
| File name owning the snippet. | |
| size_t | line = 1 |
| 1-based line number. | |
| size_t | column = 1 |
| 1-based begin column. | |
| std::string | line_text |
| Raw line contents without trailing newline. | |
| size_t | highlight_column = 1 |
| 1-based column where the underline starts. | |
| size_t | highlight_width = 1 |
| Width of the underline, always >= 1. | |
Render-ready excerpt for a single source line.
Snippets are derived from a Source_Span and prepared for plain-text diagnostic rendering. The highlight is clipped to a single line.
Definition at line 163 of file ah-source.H.
| size_t Aleph::Source_Snippet::column = 1 |
1-based begin column.
Definition at line 167 of file ah-source.H.
| std::string Aleph::Source_Snippet::file_name |
File name owning the snippet.
Definition at line 165 of file ah-source.H.
| size_t Aleph::Source_Snippet::highlight_column = 1 |
1-based column where the underline starts.
Definition at line 169 of file ah-source.H.
| size_t Aleph::Source_Snippet::highlight_width = 1 |
Width of the underline, always >= 1.
Definition at line 170 of file ah-source.H.
| size_t Aleph::Source_Snippet::line = 1 |
1-based line number.
Definition at line 166 of file ah-source.H.
Referenced by Aleph::Diagnostic_Engine::render_label_snippet().
| std::string Aleph::Source_Snippet::line_text |
Raw line contents without trailing newline.
Definition at line 168 of file ah-source.H.