[ruby-cvs:68349] yui-knk:r61168 (trunk): parse.y: Set locations of nd_body in NODE_ITER explicitly

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Tue Dec 12 23:10:23 JST 2017


yui-knk	2017-12-12 23:10:23 +0900 (Tue, 12 Dec 2017)

  New Revision: 61168

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

  Log:
    parse.y: Set locations of nd_body in NODE_ITER explicitly
    
    * parse.y: Currently the location of do_body is set
      by new_do_body. Sometimes the last part of do_body is
      none, because bodystmt ends with opt_ensure.
      Token keyword_end has been looked ahead when a tokenizer
      generates none, so the last location of opt_ensure matches
      the last location of `end`. But this relation will be
      broken when we change the last location of none to be equal to
      the first location of none. So set locations of nd_body in
      NODE_ITER explicitly.

  Modified files:
    trunk/parse.y


More information about the ruby-cvs mailing list