Documentation
¶
Index ¶
- func File(packagePath, relative string, implicit bool) (def.Definition, error)
- func Function(index *index.Index, info *loader.PackageInfo, n *ast.FuncDecl) (def.Definition, error)
- func Interface(index *index.Index, info *loader.PackageInfo, gn *ast.GenDecl, n *ast.TypeSpec) (def.Definition, error)
- func Method(index *index.Index, info *loader.PackageInfo, n *ast.FuncDecl) (def.Definition, error)
- func Struct(index *index.Index, info *loader.PackageInfo, gn *ast.GenDecl, n *ast.TypeSpec) (def.Definition, error)
- func Type(index *index.Index, info *loader.PackageInfo, gn *ast.GenDecl, n *ast.TypeSpec) (def.Definition, error)
- func Value(index *index.Index, info *loader.PackageInfo, gn *ast.GenDecl, ...) (def.Definition, error)
- type Filer
- type Functioner
- type Interfacer
- type Methoder
- type Structer
- type Typer
- type Valuer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func File ¶
func File(packagePath, relative string, implicit bool) (def.Definition, error)
File constructor
NOTE: implicit includes are files that have been added during the process, that have no representation in the source code (e.g. preact := js.File("./preact.js")) you shouldn't need this option unless you're working on the compiler
func Function ¶
func Function(index *index.Index, info *loader.PackageInfo, n *ast.FuncDecl) (def.Definition, error)
Function fn
func Interface ¶
func Interface(index *index.Index, info *loader.PackageInfo, gn *ast.GenDecl, n *ast.TypeSpec) (def.Definition, error)
Interface fn
func Method ¶
func Method(index *index.Index, info *loader.PackageInfo, n *ast.FuncDecl) (def.Definition, error)
Method fn
func Struct ¶
func Struct(index *index.Index, info *loader.PackageInfo, gn *ast.GenDecl, n *ast.TypeSpec) (def.Definition, error)
Struct fn
Types ¶
type Functioner ¶
type Functioner interface {
def.Definition
IsAsync() (bool, error)
IsVariadic() bool
Node() *ast.FuncDecl
Rewrite() def.Rewrite
Params() []string
Results() []def.FunctionResult
}
Functioner interface
type Interfacer ¶
type Interfacer interface {
def.Definition
ImplementedBy(method string) []Methoder
DependenciesOf(method string) ([]def.Definition, error)
Node() *ast.TypeSpec
Methods() []def.InterfaceMethod
FindMethod(name string) def.InterfaceMethod
}
Interfacer method
type Structer ¶
type Structer interface {
def.Definition
Gen() *ast.GenDecl
Node() *ast.TypeSpec
Fields() []*field
Field(name string) *field
Methods() []def.Definition
Implements() ([]Interfacer, error)
}
Structer interface
Click to show internal directories.
Click to hide internal directories.