ast

package
v0.14.4 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	Nodes []*Node
}

func NewDocument

func NewDocument() *Document

func (*Document) AddNode

func (d *Document) AddNode(node *Node)

type Node

type Node struct {
	Type     string
	Text     string
	Children []*Node
}

func NewNode

func NewNode(tp, text string) *Node

func (*Node) AddChild

func (n *Node) AddChild(child *Node)

Jump to

Keyboard shortcuts

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