Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser wraps go-tree-sitter with multi-language support and caching.
func (*Parser) Parse ¶
Parse parses source code and returns a tree-sitter Tree. If language is non-empty and different from the current one, it switches first.
func (*Parser) SetLanguage ¶
SetLanguage switches the parser to a different language.
Click to show internal directories.
Click to hide internal directories.