Documentation
¶
Overview ¶
Package parse extracts tags from source files using tree-sitter.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractTags ¶
func ExtractTags(l *lang.Language, parser *sitter.Parser, query *sitter.Query, source []byte, filePath string) []model.Tag
ExtractTags parses a source file and returns definition and reference tags. The parser must be created for the correct language. filePath is used only for Tag.File and should be the repo-relative path.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.