diff options
author | yui-knk <[email protected]> | 2024-01-01 01:31:28 +0900 |
---|---|---|
committer | Yuichiro Kaneko <[email protected]> | 2024-01-09 16:07:19 +0900 |
commit | db476cc71cb6c690bd5b32cebebf7ebcbff604ad () | |
tree | 3fa0bfc4a58f6016e7cad7304e951b063f94209f /node_dump.c | |
parent | f82a6172a2a96815f9478410116d35c76b56efb5 (diff) |
Introduce NODE_SYM to manage symbol literal
`:sym` was managed by `NODE_LIT` with `Symbol` object. This commit introduces `NODE_SYM` so that 1. Symbol literal is detectable from AST Node 2. Reduce dependency on ruby object
-rw-r--r-- | node_dump.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -784,6 +784,13 @@ dump_node(VALUE buf, VALUE indent, int comment, const NODE * node) F_NODE(nd_next->nd_next, RNODE_DSTR, "tailing strings"); return; case NODE_EVSTR: ANN("interpolation expression"); ANN("format: \"..#{ [nd_body] }..\""); |