Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileCompiler ¶
type FileCompiler struct {
// contains filtered or unexported fields
}
FileCompiler is an AST file compiler.
Turns AST declaration into a single file.
func NewFileCompiler ¶
func NewFileCompiler(pkgName string) *FileCompiler
NewFileCompiler returns a new file compiler.
func (*FileCompiler) AddDecl ¶
func (fc *FileCompiler) AddDecl(decl models.Decl)
AddDecl adds a declaration.
func (*FileCompiler) AddImport ¶
func (fc *FileCompiler) AddImport(path string, alias string)
AddImport adds an import.
Click to show internal directories.
Click to hide internal directories.