Documentation ¶
Index ¶
- Variables
- func AttemptExprAsType(e ast.Expr, fset *token.FileSet) map[string]interface{}
- func DumpArray(a *ast.ArrayType, fset *token.FileSet) map[string]interface{}
- func DumpBasicLit(l *ast.BasicLit, fset *token.FileSet) map[string]interface{}
- func DumpBinaryExpr(b *ast.BinaryExpr, fset *token.FileSet) map[string]interface{}
- func DumpBlock(b *ast.BlockStmt, fset *token.FileSet) []interface{}
- func DumpBlockAsStmt(b *ast.BlockStmt, fset *token.FileSet) map[string]interface{}
- func DumpCall(c *ast.CallExpr, fset *token.FileSet) map[string]interface{}
- func DumpChanDir(d ast.ChanDir) string
- func DumpCommentGroup(g *ast.CommentGroup, fset *token.FileSet) []string
- func DumpDecl(n ast.Decl, fset *token.FileSet) map[string]interface{}
- func DumpExpr(e ast.Expr, fset *token.FileSet) map[string]interface{}
- func DumpExprAsType(e ast.Expr, fset *token.FileSet) map[string]interface{}
- func DumpExprs(exprs []ast.Expr, fset *token.FileSet) []interface{}
- func DumpField(f *ast.Field, fset *token.FileSet) map[string]interface{}
- func DumpFields(fs *ast.FieldList, fset *token.FileSet) []map[string]interface{}
- func DumpFile(f *ast.File, fset *token.FileSet) ([]byte, error)
- func DumpFuncDecl(f *ast.FuncDecl, fset *token.FileSet) map[string]interface{}
- func DumpGenDecl(decl *ast.GenDecl, fset *token.FileSet) map[string]interface{}
- func DumpIdent(i *ast.Ident, fset *token.FileSet) map[string]interface{}
- func DumpImport(spec *ast.ImportSpec, fset *token.FileSet) map[string]interface{}
- func DumpMethodDecl(f *ast.FuncDecl, fset *token.FileSet) map[string]interface{}
- func DumpPosition(p token.Position) map[string]interface{}
- func DumpStmt(s ast.Stmt, fset *token.FileSet) interface{}
- func DumpTypeAlias(t *ast.TypeSpec, fset *token.FileSet) map[string]interface{}
- func DumpValue(kind string, spec *ast.ValueSpec, fset *token.FileSet) map[string]interface{}
- func IsImport(d ast.Decl) bool
- func Perish(pos token.Position, typ string, reason string)
- func TestExpr(s string) map[string]interface{}
- func TestFile(p string) []byte
- func TestStmt(s string) []byte
Constants ¶
This section is empty.
Variables ¶
View Source
var INVALID_POSITION token.Position = token.Position{Filename: "unspecified", Offset: -1, Line: -1, Column: -1}
View Source
var ShouldPanic bool = false
View Source
var TOPLEVEL_POSITION token.Position = token.Position{Filename: "toplevel", Offset: -1, Line: -1, Column: -1}
Functions ¶
func AttemptExprAsType ¶
func DumpBinaryExpr ¶
func DumpBinaryExpr(b *ast.BinaryExpr, fset *token.FileSet) map[string]interface{}
func DumpBlockAsStmt ¶
func DumpChanDir ¶
func DumpCommentGroup ¶
func DumpCommentGroup(g *ast.CommentGroup, fset *token.FileSet) []string
func DumpImport ¶
func DumpImport(spec *ast.ImportSpec, fset *token.FileSet) map[string]interface{}
func DumpMethodDecl ¶ added in v0.1.4
func DumpPosition ¶ added in v0.2.2
func DumpTypeAlias ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.