syntax

package
v1.8.23 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const NoNode = ^NodeID(0)

Variables

This section is empty.

Functions

This section is empty.

Types

type CompactTree

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

func NewCompactTree

func NewCompactTree(file *parser.CompactFile) *CompactTree

func (*CompactTree) Child

func (t *CompactTree) Child(node NodeID, index int) NodeID

func (*CompactTree) ChildCount

func (t *CompactTree) ChildCount(node NodeID) int

func (*CompactTree) End

func (t *CompactTree) End(node NodeID) int

func (*CompactTree) Field

func (t *CompactTree) Field(node NodeID, name string) NodeID

func (*CompactTree) File

func (t *CompactTree) File() *parser.CompactFile

func (*CompactTree) HasError

func (t *CompactTree) HasError(node NodeID) bool

func (*CompactTree) Kind

func (t *CompactTree) Kind(node NodeID) parser.Kind

func (*CompactTree) Len

func (t *CompactTree) Len() int

func (*CompactTree) MissingSemi

func (t *CompactTree) MissingSemi(node NodeID) bool

func (*CompactTree) OfKind

func (t *CompactTree) OfKind(kind parser.Kind) []NodeID

func (*CompactTree) Parent

func (t *CompactTree) Parent(node NodeID) NodeID

func (*CompactTree) Root

func (t *CompactTree) Root() NodeID

func (*CompactTree) Source

func (t *CompactTree) Source() []byte

func (*CompactTree) Start

func (t *CompactTree) Start(node NodeID) int

func (*CompactTree) Text

func (t *CompactTree) Text(node NodeID) string

func (*CompactTree) TokenEnd

func (t *CompactTree) TokenEnd(node NodeID) int

func (*CompactTree) TokenKind

func (t *CompactTree) TokenKind(node NodeID) token.Kind

func (*CompactTree) TokenStart

func (t *CompactTree) TokenStart(node NodeID) int

func (*CompactTree) TokenText

func (t *CompactTree) TokenText(node NodeID) string

func (*CompactTree) Valid

func (t *CompactTree) Valid(node NodeID) bool

type NodeID

type NodeID uint32

Jump to

Keyboard shortcuts

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