[ruby-cvs:72321] yui-knk:r65221 (trunk): Fix locations of NODE_LAMBDA.

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Sat Oct 20 19:10:46 JST 2018


yui-knk	2018-10-20 19:10:46 +0900 (Sat, 20 Oct 2018)

  New Revision: 65221

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

  Log:
    Fix locations of NODE_LAMBDA.
    
    * node.h: Add `nd_first_loc` and `nd_set_first_loc`
    
    * parse.y: Fix to start with the beginning of `->` .
    
      e.g. The locations of the NODE_LAMBDA is fixed:
    
      ```
      -> x { 1 + 2 }
      ```
    
      * Before
    
      ```
      NODE_LAMBDA (line: 1, location: (1,2)-(1,14))
      ```
    
      * After
    
      ```
      NODE_LAMBDA (line: 1, location: (1,0)-(1,14))
      ```

  Modified files:
    trunk/node.h
    trunk/parse.y


More information about the ruby-cvs mailing list