From 05a63c132f5a93b424c844a6e0c982b7b3dc64bb Mon Sep 17 00:00:00 2001 From: yui-knk Date: Thu, 13 Apr 2023 23:02:23 +0900 Subject: [PATCH] Move rb_parser_dump_tree to node.h --- internal/ruby_parser.h | 1 - node.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/ruby_parser.h b/internal/ruby_parser.h index 8058018a4a89a9..aced59e69ac295 100644 --- a/internal/ruby_parser.h +++ b/internal/ruby_parser.h @@ -14,7 +14,6 @@ VALUE rb_parser_new(void); VALUE rb_parser_end_seen_p(VALUE); VALUE rb_parser_encoding(VALUE); VALUE rb_parser_set_yydebug(VALUE, VALUE); -VALUE rb_parser_dump_tree(const NODE *node, int comment); void rb_parser_set_options(VALUE, int, int, int, int); void *rb_parser_load_file(VALUE parser, VALUE name); void rb_parser_keep_script_lines(VALUE vparser); diff --git a/node.h b/node.h index 3127a7da836929..cd3e7ebfa050e4 100644 --- a/node.h +++ b/node.h @@ -429,6 +429,8 @@ void rb_ast_delete_node(rb_ast_t*, NODE *n); rb_ast_id_table_t *rb_ast_new_local_table(rb_ast_t*, int); rb_ast_id_table_t *rb_ast_resize_latest_local_table(rb_ast_t*, int); +VALUE rb_parser_dump_tree(const NODE *node, int comment); + void rb_node_init(NODE *n, enum node_type type, VALUE a0, VALUE a1, VALUE a2); const char *ruby_node_name(int node);