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
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
..
context [ruby/rdoc] Removed RDoc::Context::Section#sequence 2020-02-20 18:06:19 +09:00
generator [ruby/rdoc] Treat multiple Ruby methods calling the same C method as aliases 2020-05-24 23:47:24 +09:00
i18n
markdown
markup [ruby/rdoc] Process crossref before tidylink 2020-05-24 23:47:24 +09:00
parser [ruby/rdoc] Treat multiple Ruby methods calling the same C method as aliases 2020-05-24 23:47:24 +09:00
rd Update parsers of RDoc that are generated by Racc 2019-12-24 07:58:53 +09:00
ri Support XDG_* (#2174) 2020-04-23 19:16:06 +09:00
stats
.document
alias.rb
anon_class.rb
any_method.rb [ruby/rdoc] Treat multiple Ruby methods calling the same C method as aliases 2020-05-24 23:47:24 +09:00
attr.rb
class_module.rb [ruby/rdoc] ClassModule#add_comment should receive RDoc::Comment 2019-07-26 17:20:27 +08:00
code_object.rb
code_objects.rb
comment.rb Fix ghost method line no 2019-11-28 08:19:05 +09:00
constant.rb
context.rb
cross_reference.rb Make (#methodname) a link with --hyperlink-all option 2019-10-26 16:27:23 +09:00
encoding.rb
erb_partial.rb
erbio.rb
extend.rb
generator.rb
ghost_method.rb
i18n.rb
include.rb
known_classes.rb
markdown.rb
markup.rb Removed autoload from Markup. 2019-08-17 20:20:04 +09:00
meta_method.rb
method_attr.rb
mixin.rb
normal_class.rb
normal_module.rb
options.rb [ruby/rdoc] Support different drive latters in include paths 2019-10-29 12:34:44 +09:00
parser.rb
rd.rb
rdoc.gemspec Update required_ruby_version to 2.4.0 2019-10-09 12:25:50 +09:00
rdoc.rb Specify explicit separator not to be affected by $; 2020-03-08 17:38:37 +09:00
require.rb
ri.rb
rubygems_hook.rb Specify explicit separator not to be affected by $; 2020-03-08 17:38:37 +09:00
servlet.rb /o should not use with instance variable 2019-07-30 12:44:38 +09:00
single_class.rb
stats.rb
store.rb Support XDG_* (#2174) 2020-04-23 19:16:06 +09:00
task.rb
text.rb [ruby/rdoc] Normalization of comment should check language 2019-07-26 17:20:58 +08:00
token_stream.rb Separate RDoc::TokenStream#add_tokens and #add_token 2019-08-16 06:02:45 +09:00
tom_doc.rb Refactor and improve performance of RDoc::Markup::Parser 2019-08-16 06:02:45 +09:00
top_level.rb
version.rb [ruby/rdoc] Version 6.2.1 2019-12-24 08:04:01 +09:00