tsitter

package
v0.0.0-...-bf22b73 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EachNode

func EachNode(root *sitter.Node, fnc func(n *sitter.Node) bool)

func EachNodeTypes

func EachNodeTypes(root *sitter.Node, fnc func(n *sitter.Node) bool, types ...string)

func NewLanguage

func NewLanguage(l Language) imports.Language

func RegisterLanguage

func RegisterLanguage(l Language)

Types

type Language

type Language interface {
	Aliases() []string
	GetLanguage() *sitter.Language
	Imports(content []byte, root *sitter.Node) ([]string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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