[ruby-cvs:68177] yui-knk:r60996 (trunk): parse.y: Fix a location of NODE_DVAR in rb_args_info

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Sun Dec 3 21:27:01 JST 2017


yui-knk	2017-12-03 21:27:01 +0900 (Sun, 03 Dec 2017)

  New Revision: 60996

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

  Log:
    parse.y: Fix a location of NODE_DVAR in rb_args_info
    
    * parse.y (new_args_tail_gen): Set only a location of NODE_DVAR.
    
      e.g. The locations of the NODE_DVAR is fixed:
    
      ```
      def a(k: 1, **kws) end
      ```
    
      * Before
    
      ```
      NODE_DVAR (line: 1, first_lineno: 1, first_column: 6, last_lineno: 1, last_column: 18)
      ```
    
      * After
    
      ```
      NODE_DVAR (line: 1, first_lineno: 1, first_column: 12, last_lineno: 1, last_column: 17)
      ```

  Modified files:
    trunk/parse.y


More information about the ruby-cvs mailing list