macro

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FuncCallInspector

type FuncCallInspector func(expr *ast.CallExpr, caller *types.Func, args []types.TypeAndValue)

FuncCallInspector FuncCallInspector

type Macro

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

Macro Macro

func NewMacro

func NewMacro() *Macro

NewMacro NewMacro

func (*Macro) FormatSource

func (m *Macro) FormatSource(data string) (string, error)

FormatSource FormatSource

func (*Macro) Import

func (m *Macro) Import(modPath, pkg string) error

Import Import

func (*Macro) ImportRecursive

func (m *Macro) ImportRecursive(modPath, pkg string) error

ImportRecursive ImportRecursive

func (*Macro) Walk

func (m *Macro) Walk(walker Walker) error

Walk Walk

type Package

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

Package Package

func (*Package) FileSet

func (mp *Package) FileSet() *token.FileSet

FileSet FileSet

func (*Package) Inspect

func (mp *Package) Inspect()

Inspect Inspect

func (*Package) OnFuncCall

func (mp *Package) OnFuncCall(funcCall FuncCallInspector)

OnFuncCall OnFuncCall

func (*Package) Package

func (mp *Package) Package() *types.Package

Package Package

func (*Package) TypeInfo

func (mp *Package) TypeInfo() types.Info

TypeInfo TypeInfo

type Walker

type Walker func(inspector Package)

Walker Walker

Jump to

Keyboard shortcuts

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