Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLanguage ¶
func GetLanguage(name string) *tree_sitter.Language
GetLanguage returns the tree-sitter Language for the given language name. Returns nil if the language is not supported.
Types ¶
type ParseResult ¶
type ParseResult struct {
Tree *tree_sitter.Tree
Source []byte
Language string
Path string
}
ParseResult holds the tree-sitter parse tree, source bytes, and file metadata.
Click to show internal directories.
Click to hide internal directories.