Versions in this module Expand all Collapse all v1 v1.0.0 Nov 6, 2018 Changes in this version + func VersionTags() []string + type Bindings map[string]Declaration + type ConstDecl struct + func (d *ConstDecl) Const() *ConstDecl + func (d *ConstDecl) Func() *FuncDecl + func (d *ConstDecl) ImportSpec() *ImportSpec + func (d *ConstDecl) Kind() DeclarationKind + func (d *ConstDecl) Method() *MethodDecl + func (d *ConstDecl) Name() string + func (d *ConstDecl) Pos() token.Pos + func (d *ConstDecl) Type() *TypeDecl + func (d *ConstDecl) Var() *VarDecl + func (d *ConstDecl) Visibility() token.Pos + type Context struct + FileSet *ftoken.FileSet + func NewContext(goos, goarch string, tags, searchPaths []string, options ...Option) (*Context, error) + func (c *Context) Load(importPath string) (*Package, error) + func (c *Context) NumPackages() int + func (c *Context) SourceFileForPath(path string) *SourceFile + type Declaration interface + Const func() *ConstDecl + Func func() *FuncDecl + ImportSpec func() *ImportSpec + Kind func() DeclarationKind + Method func() *MethodDecl + Name func() string + Type func() *TypeDecl + Var func() *VarDecl + Visibility func() token.Pos + type DeclarationKind int + const ConstDeclaration + const FuncDeclaration + const ImportDeclaration + const MethodDeclaration + const TypeDeclaration + const VarDeclaration + func (i DeclarationKind) String() string + type FuncDecl struct + func (d *FuncDecl) Const() *ConstDecl + func (d *FuncDecl) Func() *FuncDecl + func (d *FuncDecl) ImportSpec() *ImportSpec + func (d *FuncDecl) Kind() DeclarationKind + func (d *FuncDecl) Method() *MethodDecl + func (d *FuncDecl) Name() string + func (d *FuncDecl) Pos() token.Pos + func (d *FuncDecl) Type() *TypeDecl + func (d *FuncDecl) Var() *VarDecl + func (d *FuncDecl) Visibility() token.Pos + type ImportSpec struct + Dot bool + ImportPath string + Package *Package + Qualifier string + func (d *ImportSpec) Const() *ConstDecl + func (d *ImportSpec) Func() *FuncDecl + func (d *ImportSpec) Method() *MethodDecl + func (d *ImportSpec) Pos() token.Pos + func (d *ImportSpec) Type() *TypeDecl + func (d *ImportSpec) Var() *VarDecl + func (d *ImportSpec) Visibility() token.Pos + func (n *ImportSpec) ImportSpec() *ImportSpec + func (n *ImportSpec) Kind() DeclarationKind + func (n *ImportSpec) Name() string + type Lexer struct + CommentHandler func(off int32, lit []byte) + func NewLexer(file *ftoken.File, src []byte) *Lexer + func (l *Lexer) Scan() (off int32, tok token.Token) + func (l *Lexer) Token(off int32) Token + type MethodDecl struct + func (d *MethodDecl) Const() *ConstDecl + func (d *MethodDecl) Func() *FuncDecl + func (d *MethodDecl) ImportSpec() *ImportSpec + func (d *MethodDecl) Kind() DeclarationKind + func (d *MethodDecl) Method() *MethodDecl + func (d *MethodDecl) Name() string + func (d *MethodDecl) Pos() token.Pos + func (d *MethodDecl) Type() *TypeDecl + func (d *MethodDecl) Var() *VarDecl + func (d *MethodDecl) Visibility() token.Pos + type Node interface + Pos func() token.Pos + type Option func(c *Context) error + func DeclarationXref() Option + func IgnoreRedeclarations() Option + type Package struct + Dir string + ImportPath string + ImportedBy map[string]struct{} + Imports map[string]struct{} + Name string + Scope *Scope + SourceFiles []*SourceFile + type Scope struct + Bindings Bindings + Kind ScopeKind + Labels Bindings + Parent *Scope + Unbound []Declaration + func (s *Scope) Lookup(pkg *Package, fileScope *Scope, nm Token) Declaration + type ScopeKind int + const BlockScope + const FileScope + const PackageScope + const UniverseScope + func (i ScopeKind) String() string + type SourceFile struct + File *ftoken.File + ImportSpecs []*ImportSpec + InitFunctions []Declaration + Package *Package + Path string + Scope *Scope + TopLevelDecls []Declaration + Xref map[token.Pos]token.Pos + Xref0 map[Token]*Scope + type Token struct + Pos token.Pos + Val string + type TypeDecl struct + func (d *TypeDecl) Const() *ConstDecl + func (d *TypeDecl) Func() *FuncDecl + func (d *TypeDecl) ImportSpec() *ImportSpec + func (d *TypeDecl) Kind() DeclarationKind + func (d *TypeDecl) Method() *MethodDecl + func (d *TypeDecl) Name() string + func (d *TypeDecl) Pos() token.Pos + func (d *TypeDecl) Type() *TypeDecl + func (d *TypeDecl) Var() *VarDecl + func (d *TypeDecl) Visibility() token.Pos + type VarDecl struct + func (d *VarDecl) Const() *ConstDecl + func (d *VarDecl) Func() *FuncDecl + func (d *VarDecl) ImportSpec() *ImportSpec + func (d *VarDecl) Kind() DeclarationKind + func (d *VarDecl) Method() *MethodDecl + func (d *VarDecl) Name() string + func (d *VarDecl) Pos() token.Pos + func (d *VarDecl) Type() *TypeDecl + func (d *VarDecl) Var() *VarDecl + func (d *VarDecl) Visibility() token.Pos