summaryrefslogtreecommitdiff
path: root/node_dump.c
diff options
context:
space:
mode:
authorS.H <[email protected]>2024-01-27 17:11:10 +0900
committer<[email protected]>2024-01-27 08:11:10 +0000
commit9b40f42c22232aaae1b2b17bd6118eacc4c0bee3 ()
tree93393a4d7df5aa7d25252ace459543affde045db /node_dump.c
parent68b9a32a624edf0cb497d344a2a8650658500517 (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--node_dump.c7
1 files changed, 7 insertions, 0 deletions
@@ -1149,6 +1149,13 @@ dump_node(VALUE buf, VALUE indent, int comment, const NODE * node)
F_VALUE(path, rb_node_file_path_val(node), "path");
return;
case NODE_ERROR:
ANN("Broken input recovered by Error Tolerant mode");
return;