treesitter

package
v1.508.5 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorsQuery = `(ERROR) @error`

Functions

func GetNodeChildByType added in v1.508.0

func GetNodeChildByType(node *sitter.Node, childType string) *sitter.Node

func GetNodeChildByTypePath added in v1.508.0

func GetNodeChildByTypePath(node *sitter.Node, childPath ...string) *sitter.Node

func GetNodeStringField added in v1.508.0

func GetNodeStringField(node *sitter.Node, name string) *sitter.Node

func ParseQuery

func ParseQuery(langName string, lang *sitter.Language, queryStr string) *sitter.Query

func QueryErrors

func QueryErrors(langName string, lang *sitter.Language, sourceCode []byte, node *sitter.Node) []error

Create an error for each parse error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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