diff options
author | Jemma Issroff <[email protected]> | 2023-10-16 15:36:07 -0700 |
---|---|---|
committer | Aaron Patterson <[email protected]> | 2023-10-18 17:16:11 -0700 |
commit | a9512e80b01c8085c1bb8a1e30497541c844a6c1 (patch) | |
tree | f9edae15f289c62c17d252dd7544f75bd49f7c2e /prism/node.h | |
parent | d2b0c9da2e0148c8c12ca58e21c482c1e66c2358 (diff) |
Revert "Revert "[ruby/prism] Change ScopeNode to point to previous ScopeNode""
This reverts commit fd87372a7482cbf7672c44ef95bc1dc3b00bab7c.
Diffstat (limited to 'prism/node.h')
-rw-r--r-- | prism/node.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/prism/node.h b/prism/node.h index cbfed1b7c9..403e84e0d3 100644 --- a/prism/node.h +++ b/prism/node.h @@ -33,10 +33,17 @@ PRISM_EXPORTED_FUNCTION const char * pm_node_type_to_str(pm_node_type_t node_typ // 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 |