1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib/rdoc/parser
Jeremy Evans 7e7981c84f [ruby/rdoc] Treat multiple Ruby methods calling the same C method as aliases
Previously, only calls to rb_define_alias were treated as aliases.
This treats calls to rb_define_method with the same C function as
aliases, with the first function defined being the primary method.

This move the dedup code from the C parser to AnyMethod, and has
AnyMethod look in its aliases to find the call_seq.

Switch the deduplication code to remove lines matching one of the
other aliases, instead of only keeping lines matching the current
alias.  The previous approach could eliminate all call_seq lines
in cases where no line matched.  This was necessary to pass
tests when call_seq does deduplication by default.

The only change to the darkfish template is to not perform
unnecessary work by deduplicating twice.

https://github.com/ruby/rdoc/commit/0ead78616b
2020-05-24 23:47:24 +09:00
..
c.rb [ruby/rdoc] Treat multiple Ruby methods calling the same C method as aliases 2020-05-24 23:47:24 +09:00
changelog.rb
markdown.rb
rd.rb
ripper_state_lex.rb ripper_state_lex.rb: chomp CR 2019-06-07 18:57:58 +09:00
ruby.rb [ruby/rdoc] Support newline in the middle of constant definition 2019-12-24 07:58:53 +09:00
ruby_tools.rb Merge rdoc-6.1.0.beta2 2018-10-17 06:28:20 +00:00
simple.rb
text.rb