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/trunk@6289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ae3241dcfe
commit
58ec532ac9
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 16:45:21 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* eval.c (eval): warning during eval should not cause deadlock.
|
||||
|
|
|
@ -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…
Reference in a new issue