analyzer

package
v0.0.0-...-f608b10 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

type Analyzer interface {
	FetchPackage() (string, error)
	Analyze(path string) (map[string]*NodeInfo, error)
}

func NewAnalyzer

func NewAnalyzer(packageName, branchName, tmpFolder string, options ...Option) Analyzer

type NodeInfo

type NodeInfo struct {
	File             string
	ObjectName       string
	NumberLines      int
	NumberMethods    int
	NumberAttributes int
	Line             int
}

type Option

type Option func(a *analyzer)

func WithIgnoreList

func WithIgnoreList(files ...string) Option

type Visitor

type Visitor struct {
	FileSet     *token.FileSet
	StructInfo  map[string]*NodeInfo
	PackageName string
	Path        string
	TmpFolder   string
}

func (*Visitor) Visit

func (v *Visitor) Visit(node ast.Node) ast.Visitor

Jump to

Keyboard shortcuts

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