loader

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadPackage

func LoadPackage(wd string, patterns ...string) (*packages.Package, error)

func LoadPackageScope

func LoadPackageScope(wd string, patterns ...string) (*types.Scope, error)

func NewDeclProvider

func NewDeclProvider() *declProvider

Types

type MethodDecl

type MethodDecl struct {
	// contains filtered or unexported fields
}

func (*MethodDecl) LenParams

func (m *MethodDecl) LenParams() int

func (*MethodDecl) LenReturns

func (m *MethodDecl) LenReturns() int

func (*MethodDecl) Name

func (m *MethodDecl) Name() string

func (*MethodDecl) Params

func (m *MethodDecl) Params() []*paramDecl

func (*MethodDecl) Returns

func (m *MethodDecl) Returns() []*TypeDecl

type TypeDecl

type TypeDecl struct {
	// contains filtered or unexported fields
}

func GetTypeDeclaration

func GetTypeDeclaration(typeName types.Type) *TypeDecl

func NewTypeDecl

func NewTypeDecl(pkgImport, typeName string, isPointer bool) *TypeDecl

func (*TypeDecl) IsPointer added in v0.0.4

func (t *TypeDecl) IsPointer() bool

func (*TypeDecl) PkgImport

func (t *TypeDecl) PkgImport() string

func (*TypeDecl) TypeName

func (t *TypeDecl) TypeName() string

Jump to

Keyboard shortcuts

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