[ruby-cvs:68270] yui-knk:r61089 (trunk): parse.y: Fix locations of NODE_SCOPE in NODE_CLASS

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Sat Dec 9 12:03:34 JST 2017


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

  New Revision: 61089

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

  Log:
    parse.y: Fix locations of NODE_SCOPE in NODE_CLASS
    
    * parse.y: Fix to only include a range of bodystmt.
    
      e.g. The locations of the NODE_SCOPE is fixed:
    
      ```
      class A
        def a; end
      end
      ```
    
      * Before
    
      ```
      NODE_SCOPE (line: 3, code_range: (1,0)-(3,3))
      ```
    
      * After
    
      ```
      NODE_SCOPE (line: 3, code_range: (1,7)-(3,3))
      ```

  Modified files:
    trunk/parse.y


More information about the ruby-cvs mailing list