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 () | |
tree | 7bb01bb33a31122ecc7733f81842323022c3265a /node_dump.c | |
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
-rw-r--r-- | node_dump.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1098,6 +1098,13 @@ dump_node(VALUE buf, VALUE indent, int comment, const NODE * node) F_NODE(nd_pkwrestarg, RNODE_HSHPTN, "keyword rest argument"); } return; case NODE_ERROR: ANN("Broken input recovered by Error Tolerant mode"); return; |