External/Tools/AS2API/api_loader.rb
# TODO: this structure sucks; responsibility for type resolution should be
#       entirely seperate from aggregation, not shoe-horned into this class
this structure sucks; responsibility for type resolution should be
entirely seperate from aggregation, not shoe-horned into this class
this structure sucks ; responsibility for type resolution should be entirely seperate from aggregation not shoe - horned into this class
def find_file_matching(type_proxy)
    file_name = search_classpath_for(type_proxy.name)
    return file_name unless file_name.nil?
    return nil if type_proxy.qualified?
    type_proxy.containing_type.import_manager.each_package do |package_name|
      candidate_name = package_name.join(".") + "." + type_proxy.name
      file_name = search_classpath_for(candidate_name)
      return file_name unless file_name.nil?
    end
    nil
  end
def find_file_matching ( type_proxy ) file_name = search_classpath_for ( type_proxy . name ) return file_name unless file_name . nil? return nil if type_proxy . qualified? type_proxy . containing_type . import_manager . each_package do | package_name | candidate_name = package_name . join ( "." ) + "." + type_proxy . name file_name = search_classpath_for ( candidate_name ) return file_name unless file_name . nil? end nil end
TODO: this structure sucks; responsibility for type resolution should be
entirely seperate from aggregation, not shoe-horned into this class
TODO : this structure sucks ; responsibility for type resolution should be entirely seperate from aggregation not shoe - horned into this class
type_proxy
<not_specific>