|
parser 1.0.0
UTF-8 CEL expression compilation and checked library extensions
|
Owns a source-located diagnostic; copied diagnostics own independent messages. Example: parse_error(error_category::malformed_input, {0, 1}, "invalid input"). More...
#include <cel/parser/diagnostic.hpp>
Public Member Functions | |
| parse_error (error_category category, source_span span, std::string message) | |
| Constructs a diagnostic with an owned message, category, and byte interval. Precondition: span.begin <= span.end. Complexity: O(message.size()) time and space. | |
| error_category | category () const noexcept |
| Returns the category supplied at construction. | |
| source_span | span () const noexcept |
| Returns the byte interval supplied at construction, without translating offsets. | |
Owns a source-located diagnostic; copied diagnostics own independent messages. Example: parse_error(error_category::malformed_input, {0, 1}, "invalid input").