arglist

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lookup

type Lookup struct {
	DisableDefaultName bool
	// contains filtered or unexported fields
}

func NewLookup

func NewLookup() *Lookup

NewLookup is the factory function creating Lookup

func (*Lookup) LookupAST

func (l *Lookup) LookupAST(filename string) (*ast.File, error)

func (*Lookup) LookupFuncDecl

func (l *Lookup) LookupFuncDecl(filename string, targetName string) (*ast.FuncDecl, error)

TODO: remove

func (*Lookup) LookupNameSetFromFunc

func (l *Lookup) LookupNameSetFromFunc(fn interface{}) (NameSet, error)

type NameSet

type NameSet struct {
	Name    string
	Recv    string
	Args    []string
	Returns []string
}

func InspectFunc

func InspectFunc(decl *ast.FuncDecl, needDefaultName bool) (NameSet, error)

func InspectFuncLit added in v0.3.0

func InspectFuncLit(lit *ast.FuncLit, needDefaultName bool) (NameSet, error)

func (NameSet) IsAnonymous added in v0.3.0

func (ns NameSet) IsAnonymous() bool

func (NameSet) IsMethod added in v0.3.0

func (ns NameSet) IsMethod() bool

Jump to

Keyboard shortcuts

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