Discover Packages
github.com/livecodelife/linespec/v3
pkg
discover
symbols
package
Version:
v3.16.0
Opens a new window with list of versions in this module.
Published: Jul 20, 2026
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package symbols extracts top-level symbols and import relationships from source files.
Extraction is driven entirely by pkg/discover/treesitter queries — no framework
description is consulted, which is what makes this usable in discover's
framework-agnostic path.
Supported reports whether Extract can process the given language.
File holds the symbols and import paths extracted from one source file.
Extract parses src as the given language and returns its symbols and import paths.
Kind categorizes a top-level symbol.
const (
KindFunction Kind = "function"
KindMethod Kind = "method"
KindType Kind = "type"
KindClass Kind = "class"
KindModule Kind = "module"
)
Symbol is a declaration extracted from a source file.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.