aboutsummaryrefslogtreecommitdiffstats
path: root/prism_compile.h
diff options
context:
space:
mode:
authorJemma Issroff <jemmaissroff@gmail.com>2023-10-25 17:37:37 -0300
committerJemma Issroff <jemmaissroff@gmail.com>2023-10-25 18:18:35 -0300
commitb5f6e2a7c4c5119d9518a51e37d94418ec8f55f6 (patch)
tree7f427f71a73594b3eb0d1bfa11372226f75a7da8 /prism_compile.h
parent8f71a5c53007b072341775e4161ec20b50ffc538 (diff)
downloadruby-b5f6e2a7c4c5119d9518a51e37d94418ec8f55f6.tar.gz
[PRISM] ScopeNode doesn't need void * anymore
Diffstat (limited to 'prism_compile.h')
-rw-r--r--prism_compile.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/prism_compile.h b/prism_compile.h
index dcafa85555..d307807b84 100644
--- a/prism_compile.h
+++ b/prism_compile.h
@@ -11,10 +11,8 @@ typedef struct pm_scope_node {
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
+ ID *constants;
+ st_table *index_lookup_table;
} pm_scope_node_t;
void pm_scope_node_init(const pm_node_t *node, pm_scope_node_t *scope, pm_scope_node_t *previous, pm_parser_t *parser);