[ruby-cvs:68283] yui-knk:r61102 (trunk): parse.y: Fix locations of NODE_SCOPE in NODE_MODULE

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Mon Dec 11 09:06:11 JST 2017


yui-knk	2017-12-11 09:06:11 +0900 (Mon, 11 Dec 2017)

  New Revision: 61102

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

  Log:
    parse.y: Fix locations of NODE_SCOPE in NODE_MODULE
    
    * parse.y: Fix to only include a range of bodystmt.
    
      e.g. The locations of the NODE_SCOPE is fixed:
    
      ```
      module M
        def m
        end
      end
      ```
    
      * Before
    
      ```
      NODE_SCOPE (line: 4, code_range: (1,0)-(4,3))
      ```
    
      * After
    
      ```
      NODE_SCOPE (line: 4, code_range: (1,8)-(4,3))
      ```

  Modified files:
    trunk/parse.y


More information about the ruby-cvs mailing list