Documentation
¶
Index ¶
- Constants
- type CompactTree
- func (t *CompactTree) Child(node NodeID, index int) NodeID
- func (t *CompactTree) ChildCount(node NodeID) int
- func (t *CompactTree) End(node NodeID) int
- func (t *CompactTree) Field(node NodeID, name string) NodeID
- func (t *CompactTree) File() *parser.CompactFile
- func (t *CompactTree) HasError(node NodeID) bool
- func (t *CompactTree) Kind(node NodeID) parser.Kind
- func (t *CompactTree) Len() int
- func (t *CompactTree) MissingSemi(node NodeID) bool
- func (t *CompactTree) OfKind(kind parser.Kind) []NodeID
- func (t *CompactTree) Parent(node NodeID) NodeID
- func (t *CompactTree) Root() NodeID
- func (t *CompactTree) Source() []byte
- func (t *CompactTree) Start(node NodeID) int
- func (t *CompactTree) Text(node NodeID) string
- func (t *CompactTree) TokenEnd(node NodeID) int
- func (t *CompactTree) TokenKind(node NodeID) token.Kind
- func (t *CompactTree) TokenStart(node NodeID) int
- func (t *CompactTree) TokenText(node NodeID) string
- func (t *CompactTree) Valid(node NodeID) bool
- type NodeID
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) ChildCount ¶
func (t *CompactTree) ChildCount(node NodeID) int
func (*CompactTree) End ¶
func (t *CompactTree) End(node NodeID) int
func (*CompactTree) File ¶
func (t *CompactTree) File() *parser.CompactFile
func (*CompactTree) HasError ¶
func (t *CompactTree) HasError(node NodeID) bool
func (*CompactTree) Len ¶
func (t *CompactTree) Len() int
func (*CompactTree) MissingSemi ¶
func (t *CompactTree) MissingSemi(node NodeID) bool
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) 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
Click to show internal directories.
Click to hide internal directories.