Prism Ruby parser
Loading...
Searching...
No Matches
Data Fields
pm_diagnostic_t Struct Reference

This struct represents a diagnostic generated during parsing. More...

#include <diagnostic.h>

Inheritance diagram for pm_diagnostic_t:
Inheritance graph
[legend]
Collaboration diagram for pm_diagnostic_t:
Collaboration graph
[legend]

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_nodenext
 A pointer to the next node in the list.
 

Detailed Description

This struct represents a diagnostic generated during parsing.

Field Documentation

◆ owned

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.


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