Ruby
4.1.0dev (2026-04-06 revision 995eba7653854d0a20a0d1e6fe1b0b3cd186378a)
prism
internal
magic_comments.h
1
#ifndef PRISM_INTERNAL_MAGIC_COMMENTS_H
2
#define PRISM_INTERNAL_MAGIC_COMMENTS_H
3
4
#include "
prism/magic_comments.h
"
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
*/
12
struct
pm_magic_comment_t
{
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
magic_comments.h
Types and functions related to magic comments found during parsing.
pm_list_node
Definition
list.h:36
pm_location_t
This struct represents a slice in the source code, defined by an offset and a length.
Definition
ast.h:554
pm_magic_comment_t
Definition
magic_comments.h:12
Generated by
1.9.8