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

A labeled source location providing context for a primary diagnostic. More...

#include <diagnostic.h>

Data Fields

loomc_string_view_t label
 Human-readable relationship, such as "contract defined here".
loomc_source_range_t range
 Source range of the related location.

Detailed Description

A labeled source location providing context for a primary diagnostic.

Examples include a callee's declaration or the previous use of a value. The owning result retains the label and source identity. Source contents are optional, as with the primary range.


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