[ruby-cvs:68276] yui-knk:r61095 (trunk): parse.y: Fix locations of NODE_ARRAY in NODE_ATTRASGN (nd_args)

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Sat Dec 9 22:13:58 JST 2017


yui-knk	2017-12-09 22:13:58 +0900 (Sat, 09 Dec 2017)

  New Revision: 61095

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

  Log:
    parse.y: Fix locations of NODE_ARRAY in NODE_ATTRASGN (nd_args)
    
    * parse.y (arg_append_gen): Fix to only include a range of
      node2 if new list is generated.
    
      e.g. The locations of the NODE_ARRAY is fixed:
    
      ```
      x.default = 5
      ```
    
      * Before
    
      ```
      NODE_ARRAY (line: 1, code_range: (1,0)-(1,13))
      ```
    
      * After
    
      ```
      NODE_ARRAY (line: 1, code_range: (1,12)-(1,13))
      ```

  Modified files:
    trunk/parse.y


More information about the ruby-cvs mailing list