[PRISM] Use depth_offset not transparent scopes for FOR

This commit is contained in:
Matt Valentine-House 2023-12-01 13:34:21 +00:00
parent ce5f5ca1d6
commit 3b21932d14

View File

@ -1375,6 +1375,7 @@ pm_scope_node_init(const pm_node_t *node, pm_scope_node_t *scope, pm_scope_node_
case PM_FOR_NODE: {
pm_for_node_t *cast = (pm_for_node_t *)node;
scope->body = (pm_node_t *)cast->statements;
scope->local_depth_offset += 1;
break;
}
case PM_INTERPOLATED_REGULAR_EXPRESSION_NODE: {