Documentation
¶
Index ¶
- Constants
- Variables
- func ReadPackageDefinitions(pkg *tp.Package, projectPath, scriptPath, fileName string, ranges ...Range) []Range
- func ResolveDefinition(pkg *tp.Package, fn *tp.Function, path string, ranges ...Range)
- type Error
- type Mixer
- type Package
- func BuildDefaultPackage() *Package
- func BuildPackage(path string) *Package
- func LoadDefaultPackage(path *string) *Package
- func NewPackage(loadPath string, options PackageOptions) *Package
- func NewRootPackage(rootPackagePath string, name string, dataPath string) *Package
- func NewUserPackage(loadPath *string, fallbackPath *string) *Package
- func OutputDefaultPackage(path string) (pkg *Package, newFilePath string)
- func OutputPackage(pkgPath, outPath string) (pkg *Package, newFilePath string)
- func (pkg *Package) BuildUserPackage(loadPath *string, fallbackPath *string)
- func (pkg *Package) CollectFunctionDocs()
- func (pkg *Package) DebugInfo() string
- func (pkg *Package) Load(packageName string)
- func (pkg *Package) LoadFromFile(path string) (thisError *Error)
- func (pkg *Package) LoadFromPath(loadPath string, name string) *Error
- func (pkg *Package) Marshal() []byte
- func (pkg *Package) Merge(otherPackage *tp.Package)
- func (pkg *Package) Println(message string)
- func (pkg *Package) ResolveFunctionDescendants(fn *tp.Function)
- func (pkg *Package) SerializedOutput()
- type PackageInfo
- type PackageOptions
Constants ¶
View Source
const ( NOT_FOUND = iota BUILD_ERROR )
Variables ¶
View Source
var DefaultPackagePath = "packages"
View Source
var SubPaths [3]string
Functions ¶
func ReadPackageDefinitions ¶
Types ¶
type 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 LoadDefaultPackage ¶
func NewPackage ¶
func NewPackage(loadPath string, options PackageOptions) *Package
func NewRootPackage ¶
func NewUserPackage ¶
func OutputDefaultPackage ¶
func OutputPackage ¶
func (*Package) BuildUserPackage ¶
func (*Package) CollectFunctionDocs ¶
func (pkg *Package) CollectFunctionDocs()
func (*Package) LoadFromFile ¶
func (*Package) LoadFromPath ¶
func (*Package) ResolveFunctionDescendants ¶
oy, gotta export this one too
func (*Package) SerializedOutput ¶
func (pkg *Package) SerializedOutput()
type PackageInfo ¶
func ReadPackageInfoFile ¶
func ReadPackageInfoFile(location string) (info *PackageInfo, error *string)
Not fully functional. Dang it.
type PackageOptions ¶
func BuildOptions ¶
func BuildOptions() PackageOptions
Click to show internal directories.
Click to hide internal directories.