[ruby-cvs:68307] yui-knk:r61126 (trunk): parse.y: Fix locations of NODE_ARRAY in NODE_BLOCK_PASS

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Tue Dec 12 08:38:00 JST 2017


yui-knk	2017-12-12 08:38:00 +0900 (Tue, 12 Dec 2017)

  New Revision: 61126

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

  Log:
    parse.y: Fix locations of NODE_ARRAY in NODE_BLOCK_PASS
    
    * parse.y: Fix to only include a range of assocs.
    
      e.g. The locations of the NODE_ARRAY is fixed:
    
      ```
      m1(str: "bar", &blk)
      ```
    
      * Before
    
      ```
      NODE_ARRAY (line: 1, code_range: (1,3)-(1,19))
      ```
    
      * After
    
      ```
      NODE_ARRAY (line: 1, code_range: (1,3)-(1,13))
      ```

  Modified files:
    trunk/parse.y


More information about the ruby-cvs mailing list