Ruby 4.1.0dev (2026-03-30 revision 3379c7efbdc34b7936f322a6bc2de4834c8c65fc)
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. */
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. */
18};
19
20#endif
Types and functions related to comments found during parsing.
pm_comment_type_t
This is the type of a comment that we've found while parsing.
Definition comments.h:18
This struct represents a slice in the source code, defined by an offset and a length.
Definition ast.h:554