walk

package
v0.0.0-...-9853328 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PackageHandle = iota
	DeclFunc
	DeclBad
	DeclGen

	TypeArray
	TypeStruct
	TypeFunc
	TypeInterface
	TypeMap
	TypeChan

	ExprStar
	ExprSelector

	SymbolEllipsis
	SymbolIdent

	HandleDefault
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ArrayType

type ArrayType = *ast.ArrayType

type BadDecl

type BadDecl = *ast.BadDecl

type ChanType

type ChanType = *ast.ChanType

type Ellipsis

type Ellipsis = *ast.Ellipsis

type FuncDecl

type FuncDecl = *ast.FuncDecl

type FuncType

type FuncType = *ast.FuncType

type GenDecl

type GenDecl = *ast.GenDecl

type GoDecl

type GoDecl = ast.Decl

type GoExpr

type GoExpr = ast.Expr

type GoWalk

type GoWalk struct{}

func (*GoWalk) VisitDir

func (walk *GoWalk) VisitDir(dir string, handle VisitDirHandle)

func (*GoWalk) VisitExpr

func (walk *GoWalk) VisitExpr(idx int, expr ast.Expr, handle VisitExprHandle)

func (*GoWalk) VisitExprs

func (walk *GoWalk) VisitExprs(exprs []ast.Expr, handle VisitExprHandle)

type IdentSymbol

type IdentSymbol = *ast.Ident

type InterfaceType

type InterfaceType = *ast.InterfaceType

type MapType

type MapType = *ast.MapType

type SelectorExpr

type SelectorExpr = *ast.SelectorExpr

type StarExpr

type StarExpr = *ast.StarExpr

type StructType

type StructType = *ast.StructType

type UnimplementedGoWalk

type UnimplementedGoWalk struct{}

func (UnimplementedGoWalk) Visit

func (UnimplementedGoWalk) Visit(dir string)

func (UnimplementedGoWalk) VisitDir

func (UnimplementedGoWalk) VisitDir()

func (UnimplementedGoWalk) VisitExpr

func (UnimplementedGoWalk) VisitExpr()

type VisitDirHandle

type VisitDirHandle map[uint8]func(pkg string, decl ast.Decl) bool

type VisitExprHandle

type VisitExprHandle map[uint8]func(idx int, expr ast.Expr)

Jump to

Keyboard shortcuts

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