diff options
author | S.H <[email protected]> | 2024-01-27 17:11:10 +0900 |
---|---|---|
committer | <[email protected]> | 2024-01-27 08:11:10 +0000 |
commit | 9b40f42c22232aaae1b2b17bd6118eacc4c0bee3 () | |
tree | 93393a4d7df5aa7d25252ace459543affde045db /ast.c | |
parent | 68b9a32a624edf0cb497d344a2a8650658500517 (diff) |
Introduce `NODE_ENCODING`
`__ENCODING__ `was managed by `NODE_LIT` with Encoding object. Introduce `NODE_ENCODING` for 1. `__ENCODING__` is detectable from AST Node. 2. Reduce dependency Ruby object for parse.y
-rw-r--r-- | ast.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -706,6 +706,8 @@ node_children(rb_ast_t *ast, const NODE *node) return rb_ary_new_from_args(1, rb_node_line_lineno_val(node)); case NODE_FILE: return rb_ary_new_from_args(1, rb_node_file_path_val(node)); case NODE_ERROR: return rb_ary_new_from_node_args(ast, 0); case NODE_ARGS_AUX: |