Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrStop = errors.New("macro exit")
Functions ¶
Types ¶
type Context ¶
type Context struct { *astutil.Cursor Pre bool Delayed Delayed Report func(Report) // AST File *ast.File FileSet *token.FileSet // Types Package *types.Package TypesInfo *types.Info TypesSizes types.Sizes Pragmas pragma.Pragmas }
func (Context) AddImports ¶
func (c Context) AddImports(importSpec ...*ast.ImportSpec)
type HandlerFunc ¶
type Macros ¶
func (Macros) AddHandler ¶
type Rewriter ¶
type Rewriter struct {
// contains filtered or unexported fields
}
func NewRewriter ¶
Click to show internal directories.
Click to hide internal directories.