diff options
author | ydah <[email protected]> | 2024-09-27 23:55:48 +0900 |
---|---|---|
committer | Yudai Takada <[email protected]> | 2025-01-03 23:03:04 +0900 |
commit | c22b0598b0dd197a49212e06cfc91e4a3f2e058c (patch) | |
tree | 995b0050ace7bea2cdad77398d293802c57bc3bb /node_dump.c | |
parent | 5cc4240dda72582456dc271ec580178d070197a9 (diff) |
Implement SUPER NODE locations
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11712
Diffstat (limited to 'node_dump.c')
-rw-r--r-- | node_dump.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/node_dump.c b/node_dump.c index 94df6cf248..ec9a516453 100644 --- a/node_dump.c +++ b/node_dump.c @@ -646,8 +646,11 @@ dump_node(VALUE buf, VALUE indent, int comment, const NODE * node) ANN("super invocation"); ANN("format: super [nd_args]"); ANN("example: super 1"); - LAST_NODE; F_NODE(nd_args, RNODE_SUPER, "arguments"); + F_LOC(keyword_loc, RNODE_SUPER); + F_LOC(lparen_loc, RNODE_SUPER); + LAST_NODE; + F_LOC(rparen_loc, RNODE_SUPER); return; case NODE_ZSUPER: |