summaryrefslogtreecommitdiff
path: root/lib/rdoc/rdoc.rb
diff options
context:
space:
mode:
authorMike Dalessio <[email protected]>2024-11-30 07:31:36 -0500
committergit <[email protected]>2024-11-30 12:31:42 +0000
commit2923f42ed7622f6310c63aab4c0abf05402f9a04 (patch)
treecc76e44356eb4c12dc3268c3615aeac8d09e9cb8 /lib/rdoc/rdoc.rb
parent3d07754ee2c707343f79321b0fd358af3154709f (diff)
[ruby/rdoc] fix: C variables should never show up in Ancestors tree
(https://github.com/ruby/rdoc/pull/1217) If a NormalClass's superclass is a C enclosure, then update the superclass to point to the RDoc::NormalClass. This is done in a single pass after all files have been parsed. Fixes https://github.com/ruby/rdoc/pull/1205. https://github.com/ruby/rdoc/commit/1ecd9581b1
Diffstat (limited to 'lib/rdoc/rdoc.rb')
-rw-r--r--lib/rdoc/rdoc.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rdoc/rdoc.rb b/lib/rdoc/rdoc.rb
index 88ae55b409..a910215ff6 100644
--- a/lib/rdoc/rdoc.rb
+++ b/lib/rdoc/rdoc.rb
@@ -415,6 +415,8 @@ The internal error was:
parse_file filename
end.compact
+ @store.resolve_c_superclasses
+
@stats.done_adding
@options = original_options