[ruby-cvs:68280] yui-knk:r61099 (trunk): parse.y: Change the first location of NODE_ARRAY in NODE_DSTR (nd_next->nd_next)

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Mon Dec 11 08:27:58 JST 2017


yui-knk	2017-12-11 08:27:58 +0900 (Mon, 11 Dec 2017)

  New Revision: 61099

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

  Log:
    parse.y: Change the first location of NODE_ARRAY in NODE_DSTR (nd_next->nd_next)
    
    * parse.y (list_append_gen): Change the first location to
      start with the location of item if new list is generated.
    
      e.g. The locations of the NODE_ARRAY is changed:
    
      ```
      "#{a}.#{b}"
      ```
    
      * Before
    
      ```
      NODE_ARRAY (line: 1, code_range: (1,0)-(1,6))
      ```
    
      * After
    
      ```
      NODE_ARRAY (line: 1, code_range: (1,5)-(1,6))
      ```

  Modified files:
    trunk/parse.y


More information about the ruby-cvs mailing list