tree

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

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

Builder populates the nodes in the hierarchy tree with their corresponding objects.

func NewBuilder

func NewBuilder(objects []ast.FileObject) *Builder

NewBuilder initializes an Builder with the set of objects to use to populate the config hierarchy tree.

func (*Builder) VisitRoot

func (v *Builder) VisitRoot(r *ast.Root) *ast.Root

VisitRoot creates nodes for the config hierarchy.

func (*Builder) VisitTreeNode

func (v *Builder) VisitTreeNode(n *ast.TreeNode) *ast.TreeNode

VisitTreeNode adds all objects which correspond to the TreeNode in the config hierarchy.

Jump to

Keyboard shortcuts

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