arglist

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: Apache-2.0 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 {
	// 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)

func (*Lookup) LookupNameSetFromFunc

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

type NameSet

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

func InspectFunc

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

Jump to

Keyboard shortcuts

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