[ruby-cvs:68246] yui-knk:r61065 (trunk): parse.y: Fix locations of dsym

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Thu Dec 7 11:48:38 JST 2017


yui-knk	2017-12-07 11:48:38 +0900 (Thu, 07 Dec 2017)

  New Revision: 61065

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

  Log:
    parse.y: Fix locations of dsym
    
    * parse.y (dsym_node_gen): Always set locations
      to include locations of tSYMBEG and tSTRING_END.
    
      e.g. The locations of the NODE_LIT is fixed:
    
      ```
      :"a"
      ```
    
      * Before
    
      ```
      NODE_LIT (line: 1, code_range: (1,2)-(1,3))
      ```
    
      * After
    
      ```
      NODE_LIT (line: 1, code_range: (1,0)-(1,4))
      ```

  Modified files:
    trunk/parse.y


More information about the ruby-cvs mailing list