|
Loom C API
Public Loom compiler C API
|
Source range attached to a diagnostic. More...
#include <diagnostic.h>
Data Fields | |
| const loomc_source_t * | source |
| Source handle that owns or identifies the bytes. | |
| loomc_host_size_t | start |
| First byte in source contents covered by the range. | |
| loomc_host_size_t | end |
| One-past-last byte in source contents covered by the range. | |
| uint32_t | start_line |
| One-based starting line, or zero when unavailable. | |
| uint32_t | start_column |
| One-based starting column, or zero when unavailable. | |
| uint32_t | end_line |
| One-based ending line, or zero when unavailable. | |
| uint32_t | end_column |
| One-based ending column, or zero when unavailable. | |
Source range attached to a diagnostic.
Byte offsets are zero-based and line/column values are one-based when available. A zero line or column means the location was not computed or is not meaningful for the source format.