legacy

package
v0.0.0-...-6f0ee80 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2016 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NOT_FOUND = iota
	BUILD_ERROR
)

Variables

View Source
var DefaultPackagePath = "packages"
View Source
var SubPaths [3]string

Functions

func ReadPackageDefinitions

func ReadPackageDefinitions(pkg *tp.Package, projectPath, scriptPath, fileName string, ranges ...Range) []Range

func ResolveDefinition

func ResolveDefinition(pkg *tp.Package, fn *tp.Function, path string, ranges ...Range)

export so it can be re-used by the new packager

Types

type Error

type Error struct {
	Code    int
	Message string
}

func BuildRootPackage

func BuildRootPackage(rootPackage *Package, rootPackagePath string, name string) (loadError *Error)

type Mixer

type Mixer struct {
	*tp.Mixer
	LibraryPath    string
	DefinitionPath string
	DataPath       string
	RootPackage    *Package // I need to keep the tritium Package around for its methods until I'm done resolving it
}

func BuildMixer

func BuildMixer(buildPath string, name string, dataPath string) *Mixer

func (*Mixer) Merge

func (m *Mixer) Merge(otherMixer *Mixer)

type Package

type Package struct {
	LoadPath     string
	FallbackPath string
	OutputFile   string
	Log          *golog.Logger
	*tp.Package
	Options PackageOptions
	// contains filtered or unexported fields
}

func BuildDefaultPackage

func BuildDefaultPackage() *Package

func BuildPackage

func BuildPackage(path string) *Package

func LoadDefaultPackage

func LoadDefaultPackage(path *string) *Package

func NewPackage

func NewPackage(loadPath string, options PackageOptions) *Package

func NewRootPackage

func NewRootPackage(rootPackagePath string, name string, dataPath string) *Package

func NewUserPackage

func NewUserPackage(loadPath *string, fallbackPath *string) *Package

func OutputDefaultPackage

func OutputDefaultPackage(path string) (pkg *Package, newFilePath string)

func OutputPackage

func OutputPackage(pkgPath, outPath string) (pkg *Package, newFilePath string)

func (*Package) BuildUserPackage

func (pkg *Package) BuildUserPackage(loadPath *string, fallbackPath *string)

func (*Package) CollectFunctionDocs

func (pkg *Package) CollectFunctionDocs()

func (*Package) DebugInfo

func (pkg *Package) DebugInfo() string

func (*Package) Load

func (pkg *Package) Load(packageName string)

func (*Package) LoadFromFile

func (pkg *Package) LoadFromFile(path string) (thisError *Error)

func (*Package) LoadFromPath

func (pkg *Package) LoadFromPath(loadPath string, name string) *Error

func (*Package) Marshal

func (pkg *Package) Marshal() []byte

func (*Package) Merge

func (pkg *Package) Merge(otherPackage *tp.Package)

func (*Package) Println

func (pkg *Package) Println(message string)

func (*Package) ResolveFunctionDescendants

func (pkg *Package) ResolveFunctionDescendants(fn *tp.Function)

oy, gotta export this one too

func (*Package) SerializedOutput

func (pkg *Package) SerializedOutput()

type PackageInfo

type PackageInfo struct {
	Name         string
	Dependencies []string
	Types        []string
}

func ReadPackageInfoFile

func ReadPackageInfoFile(location string) (info *PackageInfo, error *string)

Not fully functional. Dang it.

type PackageOptions

type PackageOptions map[string]bool

func BuildOptions

func BuildOptions() PackageOptions

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL