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