diff options
author | yui-knk <[email protected]> | 2023-12-28 12:38:24 +0900 |
---|---|---|
committer | Yuichiro Kaneko <[email protected]> | 2023-12-29 18:32:27 +0900 |
commit | 1ade170a6cac402d362d90bbf12e566d6a4f9ba1 (patch) | |
tree | 7bb01bb33a31122ecc7733f81842323022c3265a /internal/ruby_parser.h | |
parent | 6f33e3c53dd97426b91b97b7239a1b9a3dd6a446 (diff) |
Introduce NODE_LINE
`__LINE__` was managed by `NODE_LIT` with `Integer` object.
This commit introduces `NODE_LINE` so that
1. `__LINE__` is detectable from AST Node
2. Reduce dependency ruby object
Diffstat (limited to 'internal/ruby_parser.h')
-rw-r--r-- | internal/ruby_parser.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/ruby_parser.h b/internal/ruby_parser.h index 6beb2808ab..177ede3695 100644 --- a/internal/ruby_parser.h +++ b/internal/ruby_parser.h @@ -66,4 +66,6 @@ enum lex_state_e { EXPR_END_ANY = (EXPR_END | EXPR_ENDARG | EXPR_ENDFN), EXPR_NONE = 0 }; + +VALUE rb_node_line_lineno_val(const NODE *); #endif /* INTERNAL_RUBY_PARSE_H */ |