diff options
author | Jemma Issroff <[email protected]> | 2023-10-25 11:23:57 -0300 |
---|---|---|
committer | Jemma Issroff <[email protected]> | 2023-10-25 18:18:35 -0300 |
commit | 8f71a5c53007b072341775e4161ec20b50ffc538 (patch) | |
tree | 711e0e6e3e61bf109a7e708313f56c24adbb6c90 /prism/node.h | |
parent | 0abf2d86b963089a52af9ee221d1b7da7ba9b2ee (diff) |
[PRISM] Move scope_node itself to CRuby, create prism_compile.h
Diffstat (limited to 'prism/node.h')
-rw-r--r-- | prism/node.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/prism/node.h b/prism/node.h index 403e84e0d3..71b364046a 100644 --- a/prism/node.h +++ b/prism/node.h @@ -29,21 +29,4 @@ PRISM_EXPORTED_FUNCTION const char * pm_node_type_to_str(pm_node_type_t node_typ #define PM_EMPTY_NODE_LIST ((pm_node_list_t) { .nodes = NULL, .size = 0, .capacity = 0 }) -// ScopeNodes are helper nodes, and will never be part of the AST. We manually -// declare them here to avoid generating them. -typedef struct pm_scope_node { - pm_node_t base; - struct pm_scope_node *previous; - pm_node_t *ast_node; - struct pm_parameters_node *parameters; - pm_node_t *body; - pm_constant_id_list_t locals; - pm_parser_t *parser; - - // We don't have the CRuby types ID and st_table within Prism - // so we use void * - void *constants; // ID *constants - void *index_lookup_table; // st_table *index_lookup_table -} pm_scope_node_t; - #endif // PRISM_NODE_H |