|
|
Donner SVG 0.8.0-pre
SVG editor and embeddable C++20 engine.
|
A diagnostic message from a parser, with severity, source range, and human-readable reason. More...
#include "donner/base/ParseDiagnostic.h"
Public Member Functions | |
| bool | operator== (const ParseDiagnostic &other) const=default |
| Equality operator. | |
Static Public Member Functions | |
| static ParseDiagnostic | Error (RcString reason, FileOffset location) |
| Create an error diagnostic at a single offset. | |
| static ParseDiagnostic | Error (RcString reason, SourceRange range) |
| Create an error diagnostic with a source range. | |
| static ParseDiagnostic | Warning (RcString reason, FileOffset location) |
| Create a warning diagnostic at a single offset. | |
| static ParseDiagnostic | Warning (RcString reason, SourceRange range) |
| Create a warning diagnostic with a source range. | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const ParseDiagnostic &diag) |
| Ostream output operator for ParseDiagnostic, outputs severity and error message. | |
A diagnostic message from a parser, with severity, source range, and human-readable reason.
This is the shared diagnostic type used across all donner parsers (XML, SVG, CSS, etc.).