External/Tools/AS2API/api_loader.rb
# TODO: This class actually implements a namespace, so maybe should be
#       renamed as such.  Also, in as much as the TypeProxy objects this
#       class supplies *aren't* resolved yet, this class is completely
#       mis-named.
This class actually implements a namespace, so maybe should be
renamed as such.  Also, in as much as the TypeProxy objects this
class supplies *aren't* resolved yet, this class is completely
mis-named.
This class actually implements a namespace so maybe should be renamed as such . Also in as much as the TypeProxy objects this class supplies * aren ' t * resolved yet this class is completely mis - named .
def resolve(name, lineno=nil)
    if name.is_a?(Array)
      lineno = name.first.lineno
      name = name.join(".")
    end
    type = @named_types[name]
    if type.nil?
      type = TypeProxy.new(@containing_type, name)
      type.lineno = lineno
      @named_types[name] = type
    end
    type
  end
def resolve ( name , lineno = nil ) if name . is_a? ( Array ) lineno = name . first . lineno name = name . join ( "." ) end type = @named_types [ name ] if type . nil? type = TypeProxy . new ( @containing_type , name ) type . lineno = lineno @named_types [ name ] = type end type end
TODO: This class actually implements a namespace, so maybe should be
renamed as such.
TODO : This class actually implements a namespace so maybe should be renamed as such .
name
<not_specific>
lineno
<not_specific>