Ruby: pm_magic_comment_t Struct Reference

Ruby 4.0.6p0 (2026-07-14 revision 03b6d3f8898a28604fe6cb00eae3226b821168f4)

Data Fields
pm_magic_comment_t Struct Reference

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

`#include <parser.h>`

## Data Fields
pm_list_node_t | node
| The embedded base node.
const uint8_t * | key_start
| A pointer to the start of the key in the source.
const uint8_t * | value_start
| A pointer to the start of the value in the source.
uint32_t | key_length
| The length of the key in the source.
uint32_t | value_length
| The length of the value in the source.
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 magic comments that we've found while parsing.

Definition at line 478 of file parser.h.

## Field Documentation

## ◆ key_length

uint32_t pm_magic_comment_t::key_length

The length of the key in the source.

Definition at line 489 of file parser.h.

## ◆ key_start

const uint8_t* pm_magic_comment_t::key_start

A pointer to the start of the key in the source.

Definition at line 483 of file parser.h.

## ◆ node

pm_list_node_t pm_magic_comment_t::node

The embedded base node.

Definition at line 480 of file parser.h.

## ◆ value_length

uint32_t pm_magic_comment_t::value_length

The length of the value in the source.

Definition at line 492 of file parser.h.

## ◆ value_start

const uint8_t* pm_magic_comment_t::value_start

A pointer to the start of the value in the source.

Definition at line 486 of file parser.h.

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

- prism/parser.h