mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Change symbol lookup scheme in HTML generation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c0639a7d3f
commit
7b8641ce88
2 changed files with 17 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon May 10 21:44:42 2004 Dave Thomas <dave@pragprog.com>
|
||||
|
||||
* lib/rdoc/generators/html_generator.rb: Change scheme for
|
||||
looking up symbols in HTML generator.
|
||||
|
||||
Mon May 10 12:11:37 2004 Dave Thomas <dave@pragprog.com>
|
||||
|
||||
* lib/rdoc/generators/html_generator.rb: Hack to search parents
|
||||
|
|
|
@ -380,10 +380,18 @@ module Generators
|
|||
res = []
|
||||
array.each do |i|
|
||||
ref = AllReferences[i.name]
|
||||
if !ref && @context.parent
|
||||
name = @context.parent.name + "::" + i.name
|
||||
ref = AllReferences[name]
|
||||
end
|
||||
# if !ref
|
||||
# container = @context.parent
|
||||
# while !ref && container
|
||||
# name = container.name + "::" + i.name
|
||||
# ref = AllReferences[name]
|
||||
# container = container.parent
|
||||
# end
|
||||
# end
|
||||
|
||||
ref = @context.find_symbol(i.name)
|
||||
ref = ref.viewer if ref
|
||||
|
||||
if !ref && block_given?
|
||||
possibles = yield(i.name)
|
||||
while !ref and !possibles.empty?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue