aboutsummaryrefslogtreecommitdiffstats
path: root/node.h
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2018-07-28 00:07:56 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-05-05 00:29:12 +0900
commitff21e75d32e27a2b362ed53fb471828876b54418 (patch)
treef32f96d4bfb0ecf917428a893d9aff9bb84a47cc /node.h
parent848edb03f8d3e5f5e97d3ea45fec592d87d73b05 (diff)
downloadruby-ff21e75d32e27a2b362ed53fb471828876b54418.tar.gz
parse.y: duplicated when clause warning
* parse.y (case_args): moved "duplicated when clause" warning from compile phase, so that `ruby -wc` shows them.
Diffstat (limited to 'node.h')
-rw-r--r--node.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/node.h b/node.h
index f70cdc959a..57a0ea3932 100644
--- a/node.h
+++ b/node.h
@@ -384,6 +384,8 @@ typedef struct RNode {
#define NODE_SPECIAL_NO_NAME_REST ((NODE *)-1)
#define NODE_NAMED_REST_P(node) ((node) != NODE_SPECIAL_NO_NAME_REST)
+VALUE rb_node_case_when_optimizable_literal(const NODE *const node);
+
RUBY_SYMBOL_EXPORT_BEGIN
typedef struct node_buffer_struct node_buffer_t;