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 add_type(type)
    @types << type
    package_name = type.package_name
    package = @packages[package_name]
    if package.nil?
      package = ASPackage.new(package_name)
      @packages[package_name] = package
    end
    type.package = package
    package.add_type(type)
  end
def add_type ( type ) @types << type package_name = type . package_name package = @packages [ package_name ] if package . nil? package = ASPackage . new ( package_name ) @packages [ package_name ] = package end type . package = package package . add_type ( type ) 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
<not_specific>