|
Ruby 4.0.5p0 (2026-05-20 revision 64336ffd0ee9e1f4c05891695a3d7b49cb709721)
|
This struct represents a diagnostic generated during parsing. More...
#include <diagnostic.h>
Data Fields | |
| pm_list_node_t | node |
| The embedded base node. | |
| pm_location_t | location |
| The location of the diagnostic in the source. | |
| pm_diagnostic_id_t | diag_id |
| The ID of the diagnostic. | |
| const char * | message |
| The message associated with the diagnostic. | |
| bool | owned |
| Whether or not the memory related to the message of this diagnostic is owned by this diagnostic. | |
| uint8_t | level |
| The level of the diagnostic, see pm_error_level_t and pm_warning_level_t for possible values. | |
| Data Fields inherited from pm_list_node | |
| struct pm_list_node * | next |
| A pointer to the next node in the list. | |
This struct represents a diagnostic generated during parsing.
Definition at line 368 of file diagnostic.h.
| pm_diagnostic_id_t pm_diagnostic_t::diag_id |
The ID of the diagnostic.
Definition at line 376 of file diagnostic.h.
| uint8_t pm_diagnostic_t::level |
The level of the diagnostic, see pm_error_level_t and pm_warning_level_t for possible values.
Definition at line 392 of file diagnostic.h.
| pm_location_t pm_diagnostic_t::location |
The location of the diagnostic in the source.
Definition at line 373 of file diagnostic.h.
| const char* pm_diagnostic_t::message |
The message associated with the diagnostic.
Definition at line 379 of file diagnostic.h.
Referenced by pm_diagnostic_list_free().
| pm_list_node_t pm_diagnostic_t::node |
The embedded base node.
Definition at line 370 of file diagnostic.h.
Referenced by pm_diagnostic_list_free().
| bool pm_diagnostic_t::owned |
Whether or not the memory related to the message of this diagnostic is owned by this diagnostic.
If it is, it needs to be freed when the diagnostic is freed.
Definition at line 386 of file diagnostic.h.
Referenced by pm_diagnostic_list_free().