Skip to content

Commit

Permalink
Merge pull request #1732 from jemmaissroff/add-postex-to-scope
Browse files Browse the repository at this point in the history
Add PostExecutionNode to pm_scope_node_init
  • Loading branch information
jemmaissroff authored Oct 24, 2023
2 parents 3c4b3b5 + 88fe621 commit ac69376
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 ac69376

Please sign in to comment.