Donner SVG 0.8.0
0.8.0 ยท ebf353960.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::editor::SourceDiagnostic Struct Reference

Source diagnostic prepared for editor presentation. More...

#include "donner/editor/SourceDiagnostics.h"

Public Member Functions

bool operator== (const SourceDiagnostic &other) const =default
 Compare all members for value equality.

Public Attributes

std::uint64_t id = 0
 Stable within one parse revision.
DiagnosticSeverity severity
 Diagnostic level used for display and counting.
SourceByteRange range
 Affected byte range in the source.
std::size_t line = 1
 One-based line number.
std::size_t column = 0
 Zero-based byte column.
std::size_t endLine = 1
 One-based line number for the exclusive range end.
std::size_t endColumn = 0
 Zero-based byte column for the exclusive range end.
std::string message
 Human-readable diagnostic text.

Detailed Description

Source diagnostic prepared for editor presentation.

Member Function Documentation

◆ operator==()

bool donner::editor::SourceDiagnostic::operator== ( const SourceDiagnostic & other) const
default

Compare all members for value equality.

Parameters
otherValue to compare.

Member Data Documentation

◆ severity

DiagnosticSeverity donner::editor::SourceDiagnostic::severity
Initial value:
=
@ Error
Fatal issue; parsing may stop or produce partial results.
Definition ParseDiagnostic.h:14

Diagnostic level used for display and counting.


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