[ruby-cvs:68274] yui-knk:r61093 (trunk): parse.y: Change locations of NODE_BLOCK in NODE_RESBODY (nd_body)

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Sat Dec 9 18:44:03 JST 2017


yui-knk	2017-12-09 18:44:03 +0900 (Sat, 09 Dec 2017)

  New Revision: 61093

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

  Log:
    parse.y: Change locations of NODE_BLOCK in NODE_RESBODY (nd_body)
    
    * parse.y: Change to only include a range from exc_var to compstmt.
    
      e.g. The locations of the NODE_BLOCK is changed:
    
      ```
      begin
        :a
      rescue E => e
        :b
      end
      ```
    
      * Before
    
      ```
      NODE_BLOCK (line: 3, code_range: (3,0)-(5,3))
      ```
    
      * After
    
      ```
      NODE_BLOCK (line: 3, code_range: (3,9)-(4,4))
      ```

  Modified files:
    trunk/parse.y


More information about the ruby-cvs mailing list