Ruby: pm_comment Struct Reference

Ruby 3.4.8p72 (2025-12-17 revision 995b59f66677d44767ce9faac6957e5543617ff9)

Data Fields
pm_comment Struct Reference

This is a node in the linked list of comments that we've found while parsing. More...

`#include <parser.h>`

## Data Fields
pm_list_node_t | node
| The embedded base node.
pm_location_t | location
| The location of the comment in the source.
pm_comment_type_t | type
| The type of comment that we've found.
Data Fields inherited from pm_list_node
struct pm_list_node * | next
| A pointer to the next node in the list.

## Detailed Description

This is a node in the linked list of comments that we've found while parsing.

Definition at line 458 of file parser.h.

## Field Documentation

## ◆ location

pm_location_t pm_comment::location

The location of the comment in the source.

Definition at line 463 of file parser.h.

## ◆ node

pm_list_node_t pm_comment::node

The embedded base node.

Definition at line 460 of file parser.h.

Referenced by pm_serialize_comment_list().

## ◆ type

pm_comment_type_t pm_comment::type

The type of comment that we've found.

Definition at line 466 of file parser.h.

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

- prism/parser.h