![]() |
ArkScript
A small, lisp-inspired, functional scripting language
|
#include <PrettyPrinting.hpp>
Public Member Functions | |
Window () | |
Window (const std::size_t target_line, const std::size_t target_line_end, const std::size_t line_count) | |
bool | hasSkip () const |
Public Attributes | |
std::size_t | start |
First line number to display. | |
std::size_t | target |
std::size_t | target_end |
std::size_t | end |
Last line of the context, not displayed. | |
std::optional< std::size_t > | skip_start_at = std::nullopt |
std::optional< std::size_t > | resume_at = std::nullopt |
Definition at line 31 of file PrettyPrinting.hpp.
|
inline |
Definition at line 41 of file PrettyPrinting.hpp.
|
inline |
Definition at line 45 of file PrettyPrinting.hpp.
|
inlinenodiscard |
Definition at line 52 of file PrettyPrinting.hpp.
Referenced by Ark::Diagnostics::Printer::printLine().
std::size_t Ark::Diagnostics::Window::end |
Last line of the context, not displayed.
Definition at line 36 of file PrettyPrinting.hpp.
Referenced by Ark::Diagnostics::Printer::coversLine(), and Ark::Diagnostics::Printer::hasContent().
std::optional<std::size_t> Ark::Diagnostics::Window::resume_at = std::nullopt |
Definition at line 39 of file PrettyPrinting.hpp.
Referenced by Ark::Diagnostics::Printer::extendWindow(), and Ark::Diagnostics::Printer::printLine().
std::optional<std::size_t> Ark::Diagnostics::Window::skip_start_at = std::nullopt |
Definition at line 38 of file PrettyPrinting.hpp.
Referenced by Ark::Diagnostics::Printer::extendWindow(), and Ark::Diagnostics::Printer::printLine().
std::size_t Ark::Diagnostics::Window::start |
First line number to display.
Definition at line 33 of file PrettyPrinting.hpp.
Referenced by Ark::Diagnostics::Printer::coversLine(), Ark::Diagnostics::Printer::extendWindow(), and Ark::Diagnostics::Printer::Printer().
std::size_t Ark::Diagnostics::Window::target |
Definition at line 34 of file PrettyPrinting.hpp.
Referenced by Ark::Diagnostics::Printer::hasContent(), and Ark::Diagnostics::Printer::isTargetLine().
std::size_t Ark::Diagnostics::Window::target_end |
Definition at line 35 of file PrettyPrinting.hpp.
Referenced by Ark::Diagnostics::Printer::isTargetLine().