diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-04 16:34:00 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-04 16:34:00 +0000 |
commit | a9fd7d9396285b92a3ae3af215317ff5f204473c (patch) | |
tree | d54c60e3879de1ecb384e9557ba76614dbf89320 /node.h | |
parent | 39a73cac71d9914259cfbc1074c62062cf77fdd7 (diff) | |
download | ruby-a9fd7d9396285b92a3ae3af215317ff5f204473c.tar.gz |
Introduce rb_code_range_t and replace YYLTYPE with it
rb_code_range_t has two t_code_location_t, i.e., the first and last
locations.
This is used for YYLTYPE, tracked locations of bison, and will be also
used for representing the "range", the first and the last locations of
each NODE. Currently, each NODE keeps only the first location, though.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'node.h')
-rw-r--r-- | node.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -227,6 +227,11 @@ typedef struct rb_code_location_struct { int column; } rb_code_location_t; +typedef struct rb_code_range_struct { + rb_code_location_t first_loc; + rb_code_location_t last_loc; +} rb_code_range_t; + typedef struct RNode { VALUE flags; union { |