Prism Ruby parser
|
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.
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.