Ruby 4.1.0dev (2026-04-06 revision 995eba7653854d0a20a0d1e6fe1b0b3cd186378a)
magic_comments.h
1#ifndef PRISM_INTERNAL_MAGIC_COMMENTS_H
2#define PRISM_INTERNAL_MAGIC_COMMENTS_H
3
5
6#include "prism/internal/list.h"
7
8/*
9 * This is a node in the linked list of magic comments that we've found while
10 * parsing.
11 */
13 /* The embedded base node. */
14 pm_list_node_t node;
15
16 /* The key of the magic comment. */
17 pm_location_t key;
18
19 /* The value of the magic comment. */
20 pm_location_t value;
21};
22
23#endif
Types and functions related to magic comments found during parsing.
This struct represents a slice in the source code, defined by an offset and a length.
Definition ast.h:554