From 7a050638b19cf6996c498e0c5909c293008cc58a Mon Sep 17 00:00:00 2001 From: yui-knk Date: Fri, 29 Dec 2023 22:34:35 +0900 Subject: 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 --- internal/ruby_parser.h | 1 + 1 file changed, 1 insertion(+) (limited to 'internal') 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 */ -- cgit v1.2.3