summaryrefslogtreecommitdiff
path: root/node.h
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-04 16:34:00 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-04 16:34:00 +0000
commita9fd7d9396285b92a3ae3af215317ff5f204473c (patch)
treed54c60e3879de1ecb384e9557ba76614dbf89320 /node.h
parent39a73cac71d9914259cfbc1074c62062cf77fdd7 (diff)
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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/node.h b/node.h
index 59d6d7f204..b0f8433aa5 100644
--- a/node.h
+++ b/node.h
@@ -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 {