From 252b0fc715f5a80325502b83ff6a89ad2f7c17b8 Mon Sep 17 00:00:00 2001 From: Jemma Issroff Date: Mon, 16 Oct 2023 16:02:18 -0700 Subject: [PATCH] Temporarily removed location code on scope nodes --- iseq.c | 3 +++ test/ruby/test_compile_prism.rb | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/iseq.c b/iseq.c index 1513f0c2d4..aa3e367bf0 100644 --- a/iseq.c +++ b/iseq.c @@ -954,6 +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; + /* + * TODO: Fix the below 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); @@ -967,6 +969,7 @@ pm_iseq_new_with_opt(pm_scope_node_t scope_node, pm_parser_t *parser, VALUE name .column = (int) end_line_col.column }, }; + */ // TODO: node_id int node_id = -1; diff --git a/test/ruby/test_compile_prism.rb b/test/ruby/test_compile_prism.rb index b8c95d9aa2..7e39e9d266 100644 --- a/test/ruby/test_compile_prism.rb +++ b/test/ruby/test_compile_prism.rb @@ -3,7 +3,7 @@ module Prism class TestCompilePrism < Test::Unit::TestCase def test_empty_program -# test_prism_eval("") + test_prism_eval("") end ############################################################################