Prism Ruby parser
Loading...
Searching...
No Matches
magic_comments.h
Go to the documentation of this file.
1
6#ifndef PRISM_MAGIC_COMMENTS_H
7#define PRISM_MAGIC_COMMENTS_H
8
9#include "prism/compiler/exported.h"
10#include "prism/compiler/nonnull.h"
11
12#include "prism/ast.h"
13
14#include <stddef.h>
15
18
25PRISM_EXPORTED_FUNCTION pm_location_t pm_magic_comment_key(const pm_magic_comment_t *magic_comment) PRISM_NONNULL(1);
26
33PRISM_EXPORTED_FUNCTION pm_location_t pm_magic_comment_value(const pm_magic_comment_t *magic_comment) PRISM_NONNULL(1);
34
35#endif
The abstract syntax tree.
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.
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.
struct pm_magic_comment_t pm_magic_comment_t
An opaque pointer to a magic comment found while parsing.
Definition magic_comments.h:17
This struct represents a slice in the source code, defined by an offset and a length.
Definition ast.h:559