parser

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Binder

type Binder struct {
	RemapPath func(s string) string
	// contains filtered or unexported fields
}

func NewBinder

func NewBinder(m Mode) *Binder

func (*Binder) ASM

func (b *Binder) ASM() io.Reader

func (*Binder) Create

func (b *Binder) Create(pkg bind.Package, files []*bind.Function) error

func (*Binder) GO

func (b *Binder) GO() io.Reader

func (*Binder) JS

func (b *Binder) JS() io.Reader

type Mode

type Mode uint64
const (
	Release Mode = iota
	Test
)

type Parser

type Parser struct {
	PackagesConfig *packages.Config
	// contains filtered or unexported fields
}

func NewParser

func NewParser() *Parser

func (*Parser) ParseFile

func (p *Parser) ParseFile(pkg string, fset *token.FileSet, file *ast.File) (b []*bind.Function, err error)

func (*Parser) ParsePackage

func (p *Parser) ParsePackage(pkg *packages.Package) ([]*bind.Function, error)

func (*Parser) ParsePackages

func (p *Parser) ParsePackages(dir string) (map[bind.Package][]*bind.Function, error)

Jump to

Keyboard shortcuts

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