summaryrefslogtreecommitdiff
path: root/prism/internal/magic_comments.h
blob: 72a581c5d7b1c762e512aa4aafcd2d88c33cebaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef PRISM_INTERNAL_MAGIC_COMMENTS_H
#define PRISM_INTERNAL_MAGIC_COMMENTS_H

#include "prism/magic_comments.h"

#include "prism/internal/list.h"

/*
 * This is a node in the linked list of magic comments that we've found while
 * parsing.
 */
struct pm_magic_comment_t {
    /* The embedded base node. */
    pm_list_node_t node;

    /* The key of the magic comment. */
    pm_location_t key;

    /* The value of the magic comment. */
    pm_location_t value;
};

#endif