walker

package
v0.0.0-...-94ba18c Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotImplemented = errors.New("not implemented yet")
)

Functions

This section is empty.

Types

type Option

type Option func(w *Walker)

func WithPkgLevelData

func WithPkgLevelData(pkgLevelData *PkgLevelData) Option

func WithShadows

func WithShadows(shadows map[token.Pos]int) Option

type PkgLevelData

type PkgLevelData struct {
	sync.Mutex
	Vars map[token.Pos]string
}

func NewPkgLevelData

func NewPkgLevelData() *PkgLevelData

type Walker

type Walker struct {
	codeprinter.Printer

	NumErrors        int
	FuncInit         bool
	ElseIfs          map[ast.Node]struct{}
	BreakLabels      map[ast.Node]string
	ContinueLabels   map[ast.Node]string
	GotoLabels       map[gotoLabelInfo]struct{}
	ForShadows       map[ast.Node]struct{}
	Fallthroughs     map[ast.Node]ast.Node
	FallthroughCases map[ast.Node]string
	FuncsHavingDefer map[ast.Node]int
	// contains filtered or unexported fields
}

func NewWalker

func NewWalker(pass *analysis.Pass, node ast.Node, opts ...Option) (w *Walker)

func (*Walker) Walk

func (this *Walker) Walk()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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