Documentation ¶
Index ¶
- Variables
- func GetNodeChildByType(node *sitter.Node, childType string) *sitter.Node
- func GetNodeChildByTypePath(node *sitter.Node, childPath ...string) *sitter.Node
- func GetNodeStringField(node *sitter.Node, name string) *sitter.Node
- func ParseQuery(lang Language, queryStr string) *sitter.Query
- func ParseSourceCode(lang Language, sourceCode []byte) (*sitter.Tree, error)
- func QueryErrors(lang Language, sourceCode []byte, node *sitter.Node) []error
- func QueryStrings(query *sitter.Query, name string, sourcePath string, sourceCode []byte, ...) []string
- type Language
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorsQuery = `(ERROR) @error`
Functions ¶
func GetNodeChildByType ¶ added in v1.508.0
func GetNodeChildByTypePath ¶ added in v1.508.0
func GetNodeStringField ¶ added in v1.508.0
func ParseSourceCode ¶ added in v1.509.7
func QueryErrors ¶
Create an error for each parse error.
Types ¶
Click to show internal directories.
Click to hide internal directories.