treesitter

package
v0.0.0-...-175d837 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NodePosition

func NodePosition(node TSNode) (
	startRow, startCol int,
	endRow, endCol int,
)

func NodeType

func NodeType(node TSNode) string

func Walk

func Walk(node TSNode, fn func(TSNode))

Types

type Parser

type Parser struct {
	Parser TSParser
	Tree   TSTree
}

func ParseGo

func ParseGo(src unsafe.Pointer, l int) *Parser

func (*Parser) Close

func (p *Parser) Close()

func (*Parser) NodeAt

func (p *Parser) NodeAt(point TSPoint) TSNode

type TSNode

type TSNode = C.TSNode

type TSParser

type TSParser = *C.TSParser

type TSPoint

type TSPoint = C.TSPoint

func Point

func Point(row int, col int) TSPoint

type TSTree

type TSTree = *C.TSTree

Jump to

Keyboard shortcuts

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