ast

package
v0.0.0-...-faa47b5 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Line       int
	StartChar  int
	EndChar    int
	DocOffset  int64
	Parent     *Node
	Children   []*Node
	Name       string
	Value      string
	Attributes map[string]string
}

func (*Node) Accept

func (n *Node) Accept(v Visitor)

func (*Node) Add

func (n *Node) Add(child *Node) *Node

type Parser

type Parser interface {
	Parse(content []byte, uri string) Tree
}

type Tree

type Tree struct {
	Root     *Node
	Document string
}

type Visitor

type Visitor interface {
	// contains filtered or unexported methods
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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