Implement COLON2 NODE locations

This commit is contained in:
ydah 2024-11-03 01:29:43 +09:00 committed by Yudai Takada
parent 2d96400c26
commit c584790bde
Notes: git 2025-06-15 13:37:34 +00:00
5 changed files with 31 additions and 11 deletions

View file

@ -1027,8 +1027,10 @@ dump_node(VALUE buf, VALUE indent, int comment, const NODE * node)
ANN("format: [nd_head]::[nd_mid]");
ANN("example: M::C");
F_ID(nd_mid, RNODE_COLON2, "constant name");
LAST_NODE;
F_NODE(nd_head, RNODE_COLON2, "receiver");
F_LOC(delimiter_loc, RNODE_COLON2);
LAST_NODE;
F_LOC(name_loc, RNODE_COLON2);
return;
case NODE_COLON3: