Temporarily removed location code on scope nodes

This commit is contained in:
Jemma Issroff 2023-10-16 16:02:18 -07:00 committed by Aaron Patterson
parent ba3a99acaf
commit 252b0fc715
2 changed files with 4 additions and 1 deletions

3
iseq.c
View File

@ -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; 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 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 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 .column = (int) end_line_col.column
}, },
}; };
*/
// TODO: node_id // TODO: node_id
int node_id = -1; int node_id = -1;

View File

@ -3,7 +3,7 @@
module Prism module Prism
class TestCompilePrism < Test::Unit::TestCase class TestCompilePrism < Test::Unit::TestCase
def test_empty_program def test_empty_program
# test_prism_eval("") test_prism_eval("")
end end
############################################################################ ############################################################################