Ruby
4.1.0dev (2026-03-30 revision 3379c7efbdc34b7936f322a6bc2de4834c8c65fc)
prism
internal
comments.h
1
#ifndef PRISM_INTERNAL_COMMENTS_H
2
#define PRISM_INTERNAL_COMMENTS_H
3
4
#include "
prism/comments.h
"
5
6
#include "prism/internal/list.h"
7
8
/* A comment found while parsing. */
9
struct
pm_comment_t
{
10
/* The embedded base node. */
11
pm_list_node_t
node;
12
13
/* The location of the comment in the source. */
14
pm_location_t
location;
15
16
/* The type of the comment. */
17
pm_comment_type_t
type;
18
};
19
20
#endif
comments.h
Types and functions related to comments found during parsing.
pm_comment_type_t
pm_comment_type_t
This is the type of a comment that we've found while parsing.
Definition
comments.h:18
pm_comment_t
Definition
comments.h:9
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
Generated by
1.9.8