From 58ec532ac9d6bc8913bc681d922a34d2d9ecf4b0 Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 10 May 2004 12:46:18 +0000 Subject: Change symbol lookup scheme in HTML generation git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/generators/html_generator.rb | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/rdoc/generators/html_generator.rb b/lib/rdoc/generators/html_generator.rb index ba1a512b16..ef08951063 100644 --- a/lib/rdoc/generators/html_generator.rb +++ b/lib/rdoc/generators/html_generator.rb @@ -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? -- cgit v1.2.3