Ruby 4.1.0dev (2026-04-07 revision 8dd73008e6945142a9c0bacc6e1bb84807d1f623)
magic_comments.h
Go to the documentation of this file.
1
6#ifndef PRISM_MAGIC_COMMENTS_H
7#define PRISM_MAGIC_COMMENTS_H
8
11
12#include "prism/ast.h"
13
14#include <stddef.h>
15
18
26
34
35#endif
#define PRISM_EXPORTED_FUNCTION
By default, we compile with -fvisibility=hidden.
Definition exported.h:20
PRISM_EXPORTED_FUNCTION pm_location_t pm_magic_comment_value(const pm_magic_comment_t *magic_comment) PRISM_NONNULL(1)
Returns the location of the value associated with the given magic comment.
Definition parser.c:204
PRISM_EXPORTED_FUNCTION pm_location_t pm_magic_comment_key(const pm_magic_comment_t *magic_comment) PRISM_NONNULL(1)
Returns the location of the key associated with the given magic comment.
Definition parser.c:196
#define PRISM_NONNULL(...)
Mark the parameters of a function as non-null.
Definition nonnull.h:13
This struct represents a slice in the source code, defined by an offset and a length.
Definition ast.h:554