Documentation ¶
Index ¶
- type Archive
- type Decl
- type DepId
- type ErrorList
- type Import
- type SourceMapFilter
- type This
- type Translator
- func (t *Translator) NewEmptyTypesPackage(path string)
- func (t *Translator) ReadArchive(filename, id string, data []byte) (*Archive, error)
- func (t *Translator) TranslatePackage(importPath string, files []*ast.File, fileSet *token.FileSet, ...) (*Archive, error)
- func (t *Translator) WriteArchive(a *Archive) ([]byte, error)
- func (t *Translator) WritePkgCode(pkg *Archive, w *SourceMapFilter)
- func (t *Translator) WriteProgramCode(pkgs []*Archive, mainPkgPath string, w *SourceMapFilter)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Archive ¶
type Archive struct { ImportPath string GcData []byte Dependencies []string Imports []Import Declarations []Decl Tests []string FileSet []byte }
func (*Archive) AddDependenciesOf ¶
func (*Archive) AddDependency ¶
type SourceMapFilter ¶
type Translator ¶
type Translator struct {
// contains filtered or unexported fields
}
func New ¶
func New() *Translator
func (*Translator) NewEmptyTypesPackage ¶
func (t *Translator) NewEmptyTypesPackage(path string)
func (*Translator) ReadArchive ¶
func (t *Translator) ReadArchive(filename, id string, data []byte) (*Archive, error)
func (*Translator) TranslatePackage ¶
func (*Translator) WriteArchive ¶
func (t *Translator) WriteArchive(a *Archive) ([]byte, error)
func (*Translator) WritePkgCode ¶
func (t *Translator) WritePkgCode(pkg *Archive, w *SourceMapFilter)
func (*Translator) WriteProgramCode ¶
func (t *Translator) WriteProgramCode(pkgs []*Archive, mainPkgPath string, w *SourceMapFilter)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.