walkngo

package
v0.0.0-...-654a066 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoWalker

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

GoWalker is the context for the AST visitor

func NewWalker

func NewWalker(p printer.Printer, out io.Writer, debug bool) *GoWalker

func (*GoWalker) BufferVisit

func (w *GoWalker) BufferVisit(node ast.Node) (ret string)

func (*GoWalker) Flush

func (w *GoWalker) Flush()

func (*GoWalker) SetWriter

func (w *GoWalker) SetWriter(writer io.Writer) (old io.Writer)

func (*GoWalker) Visit

func (w *GoWalker) Visit(node ast.Node) (ret ast.Visitor)

Implement the Visitor interface for GoWalker

func (*GoWalker) WalkFile

func (w *GoWalker) WalkFile(filename string) error

Jump to

Keyboard shortcuts

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