aboutsummaryrefslogtreecommitdiffstats
path: root/iseq.c
diff options
context:
space:
mode:
authorJemma Issroff <jemmaissroff@gmail.com>2023-10-18 18:53:02 -0300
committerAaron Patterson <aaron.patterson@gmail.com>2023-10-18 17:16:11 -0700
commit10c5063704c5bb086825c5e2e26ab7cacb7dbd7a (patch)
treeb071e00c704501c2970976b36de19fd20064e545 /iseq.c
parent1701b79b54a067aa4767710fef6559a23573aed4 (diff)
downloadruby-10c5063704c5bb086825c5e2e26ab7cacb7dbd7a.tar.gz
Address PR comments
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/iseq.c b/iseq.c
index 1513f0c2d4..10cddcf57a 100644
--- a/iseq.c
+++ b/iseq.c
@@ -941,10 +941,10 @@ rb_iseq_new_with_opt(const rb_ast_body_t *ast, VALUE name, VALUE path, VALUE rea
return iseq_translate(iseq);
}
-VALUE rb_iseq_compile_prism_node(rb_iseq_t * iseq, pm_scope_node_t scope_node, pm_parser_t *parser);
+VALUE rb_iseq_compile_prism_node(rb_iseq_t * iseq, pm_scope_node_t *scope_node, pm_parser_t *parser);
rb_iseq_t *
-pm_iseq_new_with_opt(pm_scope_node_t scope_node, pm_parser_t *parser, VALUE name, VALUE path, VALUE realpath,
+pm_iseq_new_with_opt(pm_scope_node_t *scope_node, pm_parser_t *parser, VALUE name, VALUE path, VALUE realpath,
int first_lineno, const rb_iseq_t *parent, int isolated_depth,
enum rb_iseq_type type, const rb_compile_option_t *option)
{
@@ -954,8 +954,8 @@ pm_iseq_new_with_opt(pm_scope_node_t scope_node, pm_parser_t *parser, VALUE name
if (!option) option = &COMPILE_OPTION_DEFAULT;
- pm_line_column_t start_line_col = pm_newline_list_line_column(&parser->newline_list, scope_node.base.location.start);
- pm_line_column_t end_line_col = pm_newline_list_line_column(&parser->newline_list, scope_node.base.location.end);
+ pm_line_column_t start_line_col = pm_newline_list_line_column(&parser->newline_list, scope_node->base.location.start);
+ pm_line_column_t end_line_col = pm_newline_list_line_column(&parser->newline_list, scope_node->base.location.end);
code_loc = (rb_code_location_t) {
.beg_pos = {
@@ -1446,7 +1446,7 @@ iseqw_s_compile_prism(int argc, VALUE *argv, VALUE self)
pm_scope_node_t scope_node;
pm_scope_node_init(node, &scope_node, NULL, &parser);
- rb_iseq_compile_prism_node(iseq, scope_node, &parser);
+ rb_iseq_compile_prism_node(iseq, &scope_node, &parser);
finish_iseq_build(iseq);
pm_node_destroy(&parser, node);