Documentation ¶
Index ¶
- Variables
- func GetAllDependencies(pkg string, config *types.Config) ([]*types.Package, error)
- func ReadArchive(packages map[string]*types.Package, filename, id string, data io.Reader) ([]byte, *types.Package, error)
- func TranslatePackage(importPath string, files []*ast.File, fileSet *token.FileSet, ...) ([]byte, error)
- func WriteArchive(code []byte, pkg *types.Package, w io.Writer)
- func WriteInterfaces(dependencies []*types.Package, w io.Writer, merge bool)
- type DependencyCollector
- type ErrorList
- type EscapeAnalysis
- type EscapingObjectCollector
- type HasBreakVisitor
- type HasDeferVisitor
- type PkgContext
Constants ¶
This section is empty.
Variables ¶
View Source
var Prelude = `` /* 18037-byte string literal not displayed */
View Source
var ReservedKeywords = []string{"arguments", "class", "delete", "eval", "export", "false", "function", "implements", "in", "interface", "let", "new", "package", "private", "protected", "public", "static", "this", "true", "try", "with", "yield"}
Functions ¶
func GetAllDependencies ¶
func ReadArchive ¶
func ReadArchive(packages map[string]*types.Package, filename, id string, data io.Reader) ([]byte, *types.Package, error)
TODO replace with encoding/gob when reflection is ready
func TranslatePackage ¶
Types ¶
type DependencyCollector ¶
type DependencyCollector struct {
// contains filtered or unexported fields
}
type EscapeAnalysis ¶
type EscapeAnalysis struct {
// contains filtered or unexported fields
}
type EscapingObjectCollector ¶
type EscapingObjectCollector struct {
// contains filtered or unexported fields
}
type HasBreakVisitor ¶
type HasBreakVisitor struct {
// contains filtered or unexported fields
}
type HasDeferVisitor ¶
type HasDeferVisitor struct {
// contains filtered or unexported fields
}
type PkgContext ¶
type PkgContext struct {
// contains filtered or unexported fields
}
func (*PkgContext) CatchOutput ¶
func (c *PkgContext) CatchOutput(f func()) []byte
func (*PkgContext) Delayed ¶
func (c *PkgContext) Delayed(f func())
func (*PkgContext) Indent ¶
func (c *PkgContext) Indent(f func())
func (*PkgContext) Printf ¶
func (c *PkgContext) Printf(format string, values ...interface{})
Click to show internal directories.
Click to hide internal directories.