summaryrefslogtreecommitdiff
path: root/include/ruby/internal/module.h
diff options
context:
space:
mode:
authorS-H-GAMELINKS <gamelinks007@gmail.com>2025-07-26 10:31:23 +0900
committerYudai Takada <t.yudai92@gmail.com>2025-08-07 01:07:16 +0900
commitbcd21053f733a93a82a34c6f5c23d6af2a8010ed (patch)
tree458403d27a96ea62fcbc742a8d07df3f01f778f3 /include/ruby/internal/module.h
parent7aa0e09bfe9cbb9f9abe8111fa3673a85d86ca9b (diff)
Add MODULE NODE locations
Add `keyword_module` amd `keyword_end` locations to struct `RNode_MODULE`. memo: ``` >ruby --dump=parsetree -e 'module A end' @ ProgramNode (location: (1,0)-(1,12)) +-- locals: [] +-- statements: @ StatementsNode (location: (1,0)-(1,12)) +-- body: (length: 1) +-- @ ModuleNode (location: (1,0)-(1,12)) +-- locals: [] +-- module_keyword_loc: (1,0)-(1,6) = "module" +-- constant_path: | @ ConstantReadNode (location: (1,7)-(1,8)) | +-- name: :A +-- body: nil +-- end_keyword_loc: (1,9)-(1,12) = "end" +-- name: :A ```
Diffstat (limited to 'include/ruby/internal/module.h')
0 files changed, 0 insertions, 0 deletions