Ruby  3.4.0dev (2024-11-05 revision ed06f018bdffe9bb7f8bdbf15fa5a727e402bfe9)
Data Fields
pm_diagnostic_t Struct Reference

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

#include <diagnostic.h>

Data Fields

pm_list_node_t node
 The embedded base node. More...
 
pm_location_t location
 The location of the diagnostic in the source. More...
 
pm_diagnostic_id_t diag_id
 The ID of the diagnostic. More...
 
const char * message
 The message associated with the diagnostic. More...
 
bool owned
 Whether or not the memory related to the message of this diagnostic is owned by this diagnostic. More...
 
uint8_t level
 The level of the diagnostic, see pm_error_level_t and pm_warning_level_t for possible values. More...
 
- Data Fields inherited from pm_list_node
struct pm_list_nodenext
 A pointer to the next node in the list. More...
 

Detailed Description

This struct represents a diagnostic generated during parsing.

Definition at line 359 of file diagnostic.h.

Field Documentation

◆ diag_id

pm_diagnostic_id_t pm_diagnostic_t::diag_id

The ID of the diagnostic.

Definition at line 367 of file diagnostic.h.

◆ level

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 383 of file diagnostic.h.

◆ location

pm_location_t pm_diagnostic_t::location

The location of the diagnostic in the source.

Definition at line 364 of file diagnostic.h.

Referenced by pm_diagnostic_list_append(), and pm_diagnostic_list_append_format().

◆ message

const char* pm_diagnostic_t::message

The message associated with the diagnostic.

Definition at line 370 of file diagnostic.h.

Referenced by pm_diagnostic_list_free().

◆ node

pm_list_node_t pm_diagnostic_t::node

The embedded base node.

Definition at line 361 of file diagnostic.h.

Referenced by pm_diagnostic_list_free().

◆ 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.

Definition at line 377 of file diagnostic.h.

Referenced by pm_diagnostic_list_free().


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