[ruby-cvs:68181] yui-knk:r61000 (trunk): parse.y: Fix a location of NODE_ZARRAY

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Mon Dec 4 08:12:01 JST 2017


yui-knk	2017-12-04 08:12:01 +0900 (Mon, 04 Dec 2017)

  New Revision: 61000

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

  Log:
    parse.y: Fix a location of NODE_ZARRAY
    
    * parse.y: Fix to only include a range of opt_call_args.
    
      e.g. The locations of the NODE_ZARRAY is fixed:
    
      ```
      a[] ||= 1
      ```
    
      * Before
    
      ```
      NODE_ZARRAY (line: 1, first_lineno: 1, first_column: 0, last_lineno: 1, last_column: 9)
      ```
    
      * After
    
      ```
      NODE_ZARRAY (line: 1, first_lineno: 1, first_column: 2, last_lineno: 1, last_column: 3)
      ```

  Modified files:
    trunk/parse.y


More information about the ruby-cvs mailing list