Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectLanguage ¶
func DetectLanguage(filename string) (*gotreesitter.Language, error)
Types ¶
type ASTNode ¶
type ASTNode struct {
Type string
Label string
Children []*ASTNode
Parent *ASTNode
StartByte uint32
EndByte uint32
StartRow uint32 // 0-indexed
StartCol uint32
EndRow uint32
EndCol uint32
}
func BuildAST ¶
func BuildAST(n *gotreesitter.Node, src []byte, lang *gotreesitter.Language, parent *ASTNode) *ASTNode
type Rules ¶
type RulesConfig ¶
Click to show internal directories.
Click to hide internal directories.