aboutsummaryrefslogtreecommitdiffstats
path: root/internal
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2023-12-29 22:34:35 +0900
committerYuichiro Kaneko <spiketeika@gmail.com>2024-01-02 14:19:42 +0900
commit7a050638b19cf6996c498e0c5909c293008cc58a (patch)
tree00b12eeba0c2230618c9ae46ba3f393d064a42b0 /internal
parent91a0d1c4377bed985db58901065428bcb4bb691f (diff)
downloadruby-7a050638b19cf6996c498e0c5909c293008cc58a.tar.gz
Introduce NODE_FILE
`__FILE__` was managed by `NODE_STR` with `String` object. This commit introduces `NODE_FILE` and `struct rb_parser_string` so that 1. `__FILE__` is detectable from AST Node 2. Reduce dependency ruby object
Diffstat (limited to 'internal')
-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 177ede3695..2c2134024b 100644
--- a/internal/ruby_parser.h
+++ b/internal/ruby_parser.h
@@ -68,4 +68,5 @@ enum lex_state_e {
};
VALUE rb_node_line_lineno_val(const NODE *);
+VALUE rb_node_file_path_val(const NODE *);
#endif /* INTERNAL_RUBY_PARSE_H */