Documentation ¶
Index ¶
- Constants
- func IsMethod(fn *ast.FuncDecl) bool
- func IsSameTypeOrPointer(ob *ast.Object, fn ast.Node) bool
- type Lookup
- func (k *Lookup) AllMethods(obname string) []*Result
- func (k *Lookup) Lookup(name string) *Result
- func (k *Lookup) Method(obname string, name string) *Result
- func (k *Lookup) MethodByObject(ob *ast.Object, name string) *Result
- func (k *Lookup) Toplevel(name string) *Result
- func (k *Lookup) With(file *ast.File) *Lookup
- type Result
- type Type
Constants ¶
View Source
const ( // TypeToplevel : toplevel (e.g. toplevel function, struct definition) TypeToplevel = Type("toplevel") // TypeMethod : method (e.g. method function, struct definition) TypeMethod = Type("method") )
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.