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
Language string // Set on root node only
}
func BuildAST ¶
func BuildAST(n *gotreesitter.Node, src []byte, lang *gotreesitter.Language, parent *ASTNode) *ASTNode
func (*ASTNode) GetLanguage ¶
GetLanguage walks up to the root to retrieve the language of the AST.
func (*ASTNode) IsScaffolding ¶
IsScaffolding checks rules.yml to see if this node type is a variable-arity container.
type Rules ¶
type RulesConfig ¶
Click to show internal directories.
Click to hide internal directories.