Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Diagnostic_Label Struct Reference

Span annotation attached to a diagnostic. More...

#include <ah-diagnostics.H>

Collaboration diagram for Aleph::Diagnostic_Label:
[legend]

Public Attributes

Source_Span span
 Highlighted region.
 
Diagnostic_Label_Kind kind = Diagnostic_Label_Kind::Primary
 Label role.
 
std::string message
 Optional label-specific message.
 

Detailed Description

Span annotation attached to a diagnostic.

Primary labels usually mark the main source of the error. Secondary labels provide related context such as previous declarations or conflicting uses.

Definition at line 79 of file ah-diagnostics.H.

Member Data Documentation

◆ kind

Diagnostic_Label_Kind Aleph::Diagnostic_Label::kind = Diagnostic_Label_Kind::Primary

Label role.

Definition at line 82 of file ah-diagnostics.H.

◆ message

std::string Aleph::Diagnostic_Label::message

Optional label-specific message.

Definition at line 83 of file ah-diagnostics.H.

Referenced by Aleph::Diagnostic_Engine::render_label_snippet().

◆ span

Source_Span Aleph::Diagnostic_Label::span

Highlighted region.

Definition at line 81 of file ah-diagnostics.H.

Referenced by Aleph::Diagnostic_Engine::render_label_snippet().


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