visitor

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emplacer

type Emplacer interface {
	Emplace(directory string, fileName string, file *File)
}

type File

type File struct {
	Ast *ast.File
	Fst *token.FileSet
}

type FileEmplacer

type FileEmplacer struct {
	// contains filtered or unexported fields
}

func NewEmplacer

func NewEmplacer(asts map[string]map[string]*File) *FileEmplacer

func (*FileEmplacer) Emplace

func (emplacer *FileEmplacer) Emplace(directory string, fileName string, file *File)

type Visitor

type Visitor struct {
	Readdirnames func(n int) (names []string, err error)
	// contains filtered or unexported fields
}

func NewVisitor

func NewVisitor(emplacer Emplacer, options ...func(*Visitor)) *Visitor

func (*Visitor) Visit

func (visitor *Visitor) Visit(path string, d fs.DirEntry, err error) error

Jump to

Keyboard shortcuts

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