External/Tools/AS2API/api_model.rb
# This exists mostly as a hack to handle types that are declaired without
# a package-prefix 'class SomeClass {', but shich are located in the
# directory structure such that a package is implied (and indeed used by
# Flash when the fileis found).
# 
# When a type has no package-prefix, and this method is called on it with
# an argument "com/foobar", we will 're-package' the type to subsequently
# become 'com.foobar.SomeClass'
This exists mostly as a hack to handle types that are declaired without
a package-prefix 'class SomeClass {', but shich are located in the
directory structure such that a package is implied (and indeed used by
Flash when the fileis found).

When a type has no package-prefix, and this method is called on it with
an argument "com/foobar", we will 're-package' the type to subsequently
become 'com.foobar.SomeClass'
This exists mostly as a hack to handle types that are declaired without a package - prefix ' class SomeClass { ' but shich are located in the directory structure such that a package is implied ( and indeed used by Flash when the fileis found ) . When a type has no package - prefix and this method is called on it with an argument " com / foobar " we will ' re - package ' the type to subsequently become ' com . foobar . SomeClass '
def sourcepath_location(path)
    path = "" if path == "."
    if @package_name == "" and path != ""
      @package_name = path.gsub("/", ".")
    else
      if @package_name != path.gsub("/", ".")
	$stderr.puts("package #{@package_name.inspect} doesn't match location #{path.inspect}")
      end
    end
  end
def sourcepath_location ( path ) path = "" if path == "." if @package_name == "" and path != "" @package_name = path . gsub ( "/" , "." ) else if @package_name != path . gsub ( "/" , "." ) $stderr . puts ( "package #{@package_name.inspect} doesn't match location #{path.inspect}" ) end end end
This exists mostly as a hack to handle types that are declaired without
a package-prefix 'class SomeClass {', but shich are located in the
directory structure such that a package is implied (and indeed used by
Flash when the fileis found).
This exists mostly as a hack to handle types that are declaired without a package - prefix ' class SomeClass { ' but shich are located in the directory structure such that a package is implied ( and indeed used by Flash when the fileis found ) .
path
<not_specific>