walk

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2025 License: CC0-1.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Walk

func Walk(v Visitor, node bindings.Node)

Walk walks the Typescript tree in depth-first order. The node can be anything, would be nice to have some types.

Types

type PrintingVisitor

type PrintingVisitor int

PrintingVisitor prints the tree to stdout.

func (PrintingVisitor) Visit

func (p PrintingVisitor) Visit(node bindings.Node) (w Visitor)

type Visitor

type Visitor interface {
	Visit(node bindings.Node) (w Visitor)
}

Visitor mimics the golang ast visitor interface.

Jump to

Keyboard shortcuts

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