diff options
author | Jeremy Evans <[email protected]> | 2019-09-10 16:17:09 -0700 |
---|---|---|
committer | aycabta <[email protected]> | 2020-05-24 23:47:24 +0900 |
commit | 7e7981c84f8cd3225b5e915cba2281869a08b784 (patch) | |
tree | c18b72aca8c83a5f976399be5f6df9aadf00bc96 /lib/rdoc/generator/darkfish.rb | |
parent | f52a4690f8fbd495e8517178a0bf95c69ccea47c (diff) |
[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
Diffstat (limited to 'lib/rdoc/generator/darkfish.rb')
0 files changed, 0 insertions, 0 deletions