visitor

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dumper

type Dumper struct {
	Indent    string
	Comments  comment.Comments
	Positions position.Positions
}

Dumper prints ast hierarchy to stdout Also prints comments and positions attached to nodes

func (Dumper) EnterNode

func (d Dumper) EnterNode(w walker.Walker) bool

EnterNode is invoked at every node in heirerchy

func (Dumper) GetChildrenVisitor

func (d Dumper) GetChildrenVisitor(key string) walker.Visitor

GetChildrenVisitor is invoked at every node parameter that contains children nodes

func (Dumper) LeaveNode

func (d Dumper) LeaveNode(n walker.Walker)

LeaveNode is invoked after node process

Jump to

Keyboard shortcuts

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