analyzer

package
v0.0.0-...-513545c Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Normal uint8 = 1 << iota
	NoWarn
	IgnoreErr
)

flag

View Source
const Mark = "go-macro:"

Variables

This section is empty.

Functions

func GetMacroFuncNames

func GetMacroFuncNames() (result []string)

func Register

func Register(name string, input any) error

Types

type Analyzer

type Analyzer struct {
	*types.Packages
	// contains filtered or unexported fields
}

func NewAnalyzer

func NewAnalyzer(rpath string) (*Analyzer, error)

func (*Analyzer) Analyze

func (a *Analyzer) Analyze(_flag uint8) error

link the target go file and macro info

type Comment

type Comment struct {
	Self   string
	Params []string
}

func (Comment) IsValid

func (c Comment) IsValid() bool

Jump to

Keyboard shortcuts

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