Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewIterLayers ¶
func NewIterLayers( source []byte, parentName string, highlighter *highlight.Highlighter, injectionCallback types.InjectionCallback, config types.Configuration, depth uint, ranges []tree_sitter.Range, ) ([]*iterLayer, error)
Types ¶
type Iterator ¶
type Iterator struct {
Ctx context.Context
Source []byte
LanguageName string
ByteOffset uint
Highlighter *highlight.Highlighter
InjectionCallback types.InjectionCallback
Layers []*iterLayer
NextEvents []ts_events.Event
LastHighlightRange *highlightRange
LastLayer *iterLayer
}
func (*Iterator) SortLayers ¶
func (h *Iterator) SortLayers()
Click to show internal directories.
Click to hide internal directories.