parse

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL