summaryrefslogtreecommitdiff
path: root/iseq.h
diff options
context:
space:
mode:
authoryui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-13 00:14:33 +0000
committeryui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-13 00:14:33 +0000
commit1ef7b0cd5a5717a1f6e18d41b85124fba312010f (patch)
tree273d5fc2c2fd83b96875021359b7afff214a97a5 /iseq.h
parenta82aaea71902bd18b87179698d88ca4f9fa0359b (diff)
downloadruby-1ef7b0cd5a5717a1f6e18d41b85124fba312010f.tar.gz
Store last location of a node on RNode
* node.c (rb_node_init): Initialize last location with 0. * node.h (struct rb_code_range_struct): Define a structure which contains first location and last location of a node. * node.h (struct RNode): Use rb_code_range_t to store last location of a node. * node.h (nd_column, nd_set_column, nd_lineno, nd_set_lineno): Follow-up the change of struct RNode. * node.h (nd_last_column, nd_set_last_column, nd_last_lineno, nd_set_last_lineno): Define getter/setter macros for last location of RNode. * parse.y : Set last location of tokens. Thanks to Yusuke Endoh (mame) for design of data structures. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.h')
0 files changed, 0 insertions, 0 deletions