iter

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

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) Next

func (h *Iterator) Next() (ts_events.Event, error)

func (*Iterator) SortLayers

func (h *Iterator) SortLayers()

Source Files

  • iter.go
  • iter_layer.go
  • query_captures_iter.go

Jump to

Keyboard shortcuts

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