[ruby-cvs:66560] rhe:r59382 (trunk): ripper: add kwrest_param parser event

rhe at ruby-lang.org rhe at ruby-lang.org
Fri Jul 21 13:29:46 JST 2017


rhe	2017-07-21 13:29:46 +0900 (Fri, 21 Jul 2017)

  New Revision: 59382

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

  Log:
    ripper: add kwrest_param parser event
    
    * parse.y (f_kwrest): Dispatch kwrest_param event. This is especially
      useful for unnamed kwrest parameter for which we expose the internal
      ID currently.  [ruby-core:75528] [Feature #12387]
    
    * test/ripper/dummyparser.rb (on_kwrest_param): Add handler for
      kwrest_param parser event.
    
    * test/ripper/test_parser_events.rb (test_params): Adapt to the change
      in DummyParser.
      (test_kwrest_param): Test that kwrest_param event handler is called.

  Modified files:
    trunk/parse.y
    trunk/test/ripper/dummyparser.rb
    trunk/test/ripper/test_parser_events.rb


More information about the ruby-cvs mailing list