Skip to content

Commit

Permalink
Add PostExecutionNode to pm_scope_node_init
Browse files Browse the repository at this point in the history
  • Loading branch information
jemmaissroff committed Oct 24, 2023
1 parent 3c4b3b5 commit 88fe621
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/prism.c
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,11 @@ pm_scope_node_init(const pm_node_t *node, pm_scope_node_t *scope, pm_scope_node_
scope->locals = cast->locals;
break;
}
case PM_POST_EXECUTION_NODE: {
pm_post_execution_node_t *cast = (pm_post_execution_node_t *) node;
scope->body = (pm_node_t *) cast->statements;
break;
}
case PM_PROGRAM_NODE: {
pm_program_node_t *cast = (pm_program_node_t *) node;
scope->body = (pm_node_t *) cast->statements;
Expand Down

0 comments on commit 88fe621

Please sign in to comment.