ctxcheck

package
v0.0.0-...-4eb781d Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Walk

func Walk(searchDir string, v *Visitor) error

Types

type ArgPredicate

type ArgPredicate func(index int, ident *ast.Ident) *ast.Ident

type CheckerMatch

type CheckerMatch struct {
	Path string
	Pos  int
}

func NewCheckerMatch

func NewCheckerMatch(path string, pos token.Pos) *CheckerMatch

type FunctionPredicate

type FunctionPredicate func(i *ast.Ident) bool

type Visitor

type Visitor struct {
	Err error

	Matches []*CheckerMatch
	// contains filtered or unexported fields
}

func NewVisitor

func NewVisitor(fnPredicate FunctionPredicate, argPredicate ArgPredicate) *Visitor

func (*Visitor) SetPath

func (v *Visitor) SetPath(path string)

func (*Visitor) Visit

func (v *Visitor) Visit(n ast.Node) (next ast.Visitor)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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