summaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2023-05-22 21:55:49 +0900
committerYuichiro Kaneko <spiketeika@gmail.com>2023-05-23 18:05:35 +0900
commit98637d421dbe8bcf86cc2effae5e26bb96a6a4da (patch)
tree991149893428e3b074774caba9533bb221e5ca42 /ast.c
parentef3aa22738d934beedfda9f486f3384e5457da8b (diff)
Move `ruby_node_name` to node.c and rename prefix of the function
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/7844
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ast.c b/ast.c
index d60e5d3fcf..1cb14bc51f 100644
--- a/ast.c
+++ b/ast.c
@@ -279,7 +279,7 @@ rb_ast_node_alloc(VALUE klass)
static const char*
node_type_to_str(const NODE *node)
{
- return (ruby_node_name(nd_type(node)) + rb_strlen_lit("NODE_"));
+ return (rb_node_name(nd_type(node)) + rb_strlen_lit("NODE_"));
}
static VALUE
@@ -675,7 +675,7 @@ node_children(rb_ast_t *ast, const NODE *node)
break;
}
- rb_bug("node_children: unknown node: %s", ruby_node_name(type));
+ rb_bug("node_children: unknown node: %s", rb_node_name(type));
}
static VALUE