[ruby-cvs:67931] yui-knk:r60750 (trunk): Store last location of a node on RNode

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Mon Nov 13 09:14:33 JST 2017


yui-knk	2017-11-13 09:14:33 +0900 (Mon, 13 Nov 2017)

  New Revision: 60750

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60750

  Log:
    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.

  Modified files:
    trunk/node.c
    trunk/node.h
    trunk/parse.y


More information about the ruby-cvs mailing list