ArkScript
A small, lisp-inspired, functional scripting language
Ark::Diagnostics::Window Struct Reference

#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
 

Detailed Description

Definition at line 31 of file PrettyPrinting.hpp.

Constructor & Destructor Documentation

◆ Window() [1/2]

Ark::Diagnostics::Window::Window ( )
inline

Definition at line 41 of file PrettyPrinting.hpp.

◆ Window() [2/2]

Ark::Diagnostics::Window::Window ( const std::size_t target_line,
const std::size_t target_line_end,
const std::size_t line_count )
inline

Definition at line 45 of file PrettyPrinting.hpp.

Member Function Documentation

◆ hasSkip()

bool Ark::Diagnostics::Window::hasSkip ( ) const
inlinenodiscard

Definition at line 52 of file PrettyPrinting.hpp.

Referenced by Ark::Diagnostics::Printer::printLine().

Member Data Documentation

◆ end

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().

◆ resume_at

std::optional<std::size_t> Ark::Diagnostics::Window::resume_at = std::nullopt

◆ skip_start_at

std::optional<std::size_t> Ark::Diagnostics::Window::skip_start_at = std::nullopt

◆ start

std::size_t Ark::Diagnostics::Window::start

◆ target

std::size_t Ark::Diagnostics::Window::target

◆ target_end

std::size_t Ark::Diagnostics::Window::target_end

Definition at line 35 of file PrettyPrinting.hpp.

Referenced by Ark::Diagnostics::Printer::isTargetLine().


The documentation for this struct was generated from the following file: