mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
Implement COLON2 NODE locations
This commit is contained in:
parent
2d96400c26
commit
c584790bde
Notes:
git
2025-06-15 13:37:34 +00:00
5 changed files with 31 additions and 11 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue