Prism Ruby parser
Loading...
Searching...
No Matches
include
prism
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
17
typedef
struct
pm_magic_comment_t
pm_magic_comment_t
;
18
25
PRISM_EXPORTED_FUNCTION
pm_location_t
pm_magic_comment_key
(
const
pm_magic_comment_t
*magic_comment) PRISM_NONNULL(1);
26
33
PRISM_EXPORTED_FUNCTION
pm_location_t
pm_magic_comment_value
(
const
pm_magic_comment_t
*magic_comment) PRISM_NONNULL(1);
34
35
#endif
ast.h
The abstract syntax tree.
pm_magic_comment_value
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.
pm_magic_comment_key
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.
pm_magic_comment_t
struct pm_magic_comment_t pm_magic_comment_t
An opaque pointer to a magic comment found while parsing.
Definition
magic_comments.h:17
pm_location_t
This struct represents a slice in the source code, defined by an offset and a length.
Definition
ast.h:559
Generated by
1.9.8