summaryrefslogtreecommitdiff
path: root/internal/parse.h
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2024-03-24 08:39:27 +0900
committerYuichiro Kaneko <spiketeika@gmail.com>2024-04-02 08:26:58 +0900
commit799e854897856e431c03a5122252358e2c57aff2 (patch)
tree4918d58d1bdcdb229c2419d381743007b62e1d2d /internal/parse.h
parent8066e3ea6e9462f510e5d0da887be94b18cce50b (diff)
[Feature #20331] Simplify parser warnings for hash keys duplication and when clause duplication
This commit simplifies warnings for hash keys duplication and when clause duplication, based on the discussion of https://bugs.ruby-lang.org/issues/20331. Warnings are reported only when strings are same to ohters.
Diffstat (limited to 'internal/parse.h')
-rw-r--r--internal/parse.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/parse.h b/internal/parse.h
index d7fc6ddad4..f4f2f0c0f5 100644
--- a/internal/parse.h
+++ b/internal/parse.h
@@ -65,6 +65,7 @@ int rb_ruby_parser_end_seen_p(rb_parser_t *p);
int rb_ruby_parser_set_yydebug(rb_parser_t *p, int flag);
rb_parser_string_t *rb_str_to_parser_string(rb_parser_t *p, VALUE str);
+void rb_parser_check_literal_when(struct parser_params *p, NODE *arg, const YYLTYPE *loc);
void rb_parser_warn_duplicate_keys(struct parser_params *p, NODE *hash);
int rb_parser_dvar_defined_ref(struct parser_params*, ID, ID**);
ID rb_parser_internal_id(struct parser_params*);