ZenitUI
Retained-mode C++20 UI framework
Loading...
Searching...
No Matches
ZenitUI::SourceSpan Struct Reference

Source location for a diagnostic. More...

#include <Diagnostics.hpp>

Public Member Functions

bool valid () const noexcept

Public Attributes

std::string file
std::uint32_t line = 0
std::uint32_t column = 0
std::uint32_t length = 0

Detailed Description

Source location for a diagnostic.

line and column are 1-based. length is 0 when unknown (e.g. for diagnostics that point at a whole rule).


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