node

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2025 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcceptIdentifier added in v0.0.2

func AcceptIdentifier(s *parse.ParseState, value string, requiresQuotes bool) *identifierNode

func AcceptKeyword added in v0.0.2

func AcceptKeyword(s *parse.ParseState, code parse.KeywordCode) *keywordNode

func NewIdentifier added in v0.0.2

func NewIdentifier(value string, requiresQuotes bool) *identifierNode

func NewKeyword added in v0.0.2

func NewKeyword(code parse.KeywordCode) *keywordNode

Types

type IdentifierNode

type IdentifierNode interface {
	Node

	Value() string
	RequiresQuotes() bool
	QuotedValue() string
	// contains filtered or unexported methods
}

type KeywordNode

type KeywordNode interface {
	Node
	KeywordCode() parse.KeywordCode
}

type Node

type Node interface {
	Begin() int
	End() int
	Len() int
	Children() []Node
}

type NodeBase added in v0.0.2

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

func NewNodeBase added in v0.0.2

func NewNodeBase(begin, end int) NodeBase

func (NodeBase) Begin added in v0.0.2

func (n NodeBase) Begin() int

func (NodeBase) End added in v0.0.2

func (n NodeBase) End() int

func (NodeBase) Len added in v0.0.2

func (n NodeBase) Len() int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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