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 maybe_parse_external_definition(type_proxy)
    source_file = find_file_matching(type_proxy)
    return nil if source_file.nil?
    astype = @parsed_external_types[source_file.suffix]
    return astype unless astype.nil?
    astype = parse_file(source_file)
    astype.document = false
    @parsed_external_types[source_file.suffix] = astype
    astype
  end
def maybe_parse_external_definition ( type_proxy ) source_file = find_file_matching ( type_proxy ) return nil if source_file . nil? astype = @parsed_external_types [ source_file . suffix ] return astype unless astype . nil? astype = parse_file ( source_file ) astype . document = false @parsed_external_types [ source_file . suffix ] = astype astype 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>