summaryrefslogtreecommitdiff
path: root/internal/ruby_parser.h
diff options
context:
space:
mode:
authoryui-knk <[email protected]>2024-01-01 01:31:28 +0900
committerYuichiro Kaneko <[email protected]>2024-01-09 16:07:19 +0900
commitdb476cc71cb6c690bd5b32cebebf7ebcbff604ad (patch)
tree3fa0bfc4a58f6016e7cad7304e951b063f94209f /internal/ruby_parser.h
parentf82a6172a2a96815f9478410116d35c76b56efb5 (diff)
Introduce NODE_SYM to manage symbol literal
`:sym` was managed by `NODE_LIT` with `Symbol` object. This commit introduces `NODE_SYM` so that 1. Symbol literal is detectable from AST Node 2. Reduce dependency on ruby object
Diffstat (limited to 'internal/ruby_parser.h')
-rw-r--r--internal/ruby_parser.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/ruby_parser.h b/internal/ruby_parser.h
index 8da062bf9f..54e25276ee 100644
--- a/internal/ruby_parser.h
+++ b/internal/ruby_parser.h
@@ -71,6 +71,7 @@ enum lex_state_e {
EXPR_NONE = 0
};
+VALUE rb_node_sym_string_val(const NODE *);
VALUE rb_node_line_lineno_val(const NODE *);
VALUE rb_node_file_path_val(const NODE *);