lookup

package
v0.0.0-...-2e69b07 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Object

func Object(pkg *types.Package, name string) (types.Object, error)

Object :

Types

type FuncRef

type FuncRef struct {
	*types.Func
	Signature *types.Signature
}

FuncRef :

func AsFunc

func AsFunc(ob types.Object) (*FuncRef, error)

AsFunc :

type InterfaceRef

type InterfaceRef struct {
	*types.Named
	Underlying *types.Interface
}

InterfaceRef :

func AsInterface

func AsInterface(ob types.Object) (*InterfaceRef, error)

AsInterface :

func (*InterfaceRef) IterateAllMethods

func (ref *InterfaceRef) IterateAllMethods(fn func(*FuncRef))

IterateAllMethods :

func (*InterfaceRef) IterateMethods

func (ref *InterfaceRef) IterateMethods(fn func(*FuncRef), mode typesutil.IterateMode)

IterateMethods :

type PackageRef

type PackageRef struct {
	*types.Package
}

PackageRef :

func Package

func Package(prog *loader.Program, pkgpath string) (*PackageRef, error)

Package :

func (*PackageRef) LookupFunc

func (ref *PackageRef) LookupFunc(name string) (*FuncRef, error)

LookupFunc :

func (*PackageRef) LookupInterface

func (ref *PackageRef) LookupInterface(name string) (*InterfaceRef, error)

LookupInterface :

func (*PackageRef) LookupStruct

func (ref *PackageRef) LookupStruct(name string) (*StructRef, error)

LookupStruct :

type StructRef

type StructRef struct {
	*types.Named
	Underlying *types.Struct
}

StructRef :

func AsStruct

func AsStruct(ob types.Object) (*StructRef, error)

AsStruct :

func (*StructRef) IterateAllFields

func (ref *StructRef) IterateAllFields(fn func(*types.Var))

IterateAllFields :

func (*StructRef) IterateAllMethods

func (ref *StructRef) IterateAllMethods(fn func(*types.Func))

IterateAllMethods :

func (*StructRef) IterateFields

func (ref *StructRef) IterateFields(fn func(*types.Var), mode typesutil.IterateMode)

IterateFields :

func (*StructRef) IterateMethods

func (ref *StructRef) IterateMethods(fn func(*types.Func), mode typesutil.IterateMode)

IterateMethods :

type Type

type Type string

Type :

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL