[ruby-cvs:68197] yui-knk:r61016 (trunk): parse.y: Fix locations of NODE_*ASGN and NODE_ERRINFO

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Tue Dec 5 08:59:02 JST 2017


yui-knk	2017-12-05 08:59:02 +0900 (Tue, 05 Dec 2017)

  New Revision: 61016

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

  Log:
    parse.y: Fix locations of NODE_*ASGN and NODE_ERRINFO
    
    * parse.y: Fix to only include a range of exc_var.
    
      e.g. The locations of the NODE_DASGN_CURR and NODE_ERRINFO are fixed:
    
      ```
      begin
        1
      rescue => e
        2
      end
      ```
    
      * Before
    
      ```
      NODE_DASGN_CURR (line: 3, first_lineno: 3, first_column: 0, last_lineno: 5, last_column: 3)
      NODE_ERRINFO (line: 5, first_lineno: 3, first_column: 0, last_lineno: 5, last_column: 3)
      ```
    
      * After
    
      ```
      NODE_DASGN_CURR (line: 3, first_lineno: 3, first_column: 7, last_lineno: 3, last_column: 11)
      NODE_ERRINFO (line: 5, first_lineno: 3, first_column: 7, last_lineno: 3, last_column: 11)
      ```

  Modified files:
    trunk/parse.y


More information about the ruby-cvs mailing list