Loom C API
Public Loom compiler C API
Loading...
Searching...
No Matches
loomc_diagnostic_t Struct Reference

Borrowed diagnostic view owned by a result object. More...

#include <diagnostic.h>

Data Fields

loomc_diagnostic_severity_t severity
 Diagnostic severity.
loomc_string_view_t code
 Stable diagnostic code.
loomc_string_view_t message
 Human-readable rendered message.
loomc_source_range_t range
 Primary source range.

Detailed Description

Borrowed diagnostic view owned by a result object.

Lifetime
Diagnostic strings and source ranges are owned by the result that returned this view. They remain valid until that result is released.

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