ast

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attr

type Attr interface {
	Node
	// contains filtered or unexported methods
}

type BoolValue

type BoolValue struct {
	Value bool
}

func (*BoolValue) String

func (b *BoolValue) String() string

type Element

type Element struct {
	Name        string
	Attrs       []Attr
	Children    []Fragment
	SelfClosing bool
}

func (*Element) String

func (e *Element) String() string

func (*Element) Type

func (e *Element) Type() string

type Expr

type Expr struct {
	Value string
}

func (*Expr) String

func (e *Expr) String() string

type Field

type Field struct {
	Name  string
	Value Value
}

func (*Field) String

func (f *Field) String() string

type Fragment

type Fragment interface {
	Node
	// contains filtered or unexported methods
}

type Node

type Node interface {
	String() string
}

type Script

type Script struct {
	Body []Fragment
}

func (*Script) String

func (s *Script) String() string

type StringValue

type StringValue struct {
	Value string
}

func (*StringValue) String

func (s *StringValue) String() string

type Text

type Text struct {
	Value string
}

func (*Text) String

func (r *Text) String() string

type Value

type Value interface {
	Node
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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