potentially_referenced_list (Generators::ContextUser)

    # File lib/generators/templates/application/merb_core/doc/rdoc/generators/merb_generator.rb, line 360
            def potentially_referenced_list(array)
                res = []
                array.each do |i|
                    ref = AllReferences[i.name]
                    #         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?
                            ref = AllReferences[possibles.shift]
                        end
                    end
                    h_name = CGI.escapeHTML(i.name)
                    if ref and ref.document_self
                        path = ref.path
                        res << { "name" => h_name, "href" => path }
                    else
                        res << { "name" => h_name, "href" => "" }
                    end
                end
                res
            end