Documentation
¶
Overview ¶
Package ast provides a lightweight structural outline of source files for LLM consumption. It uses gotreesitter (pure Go, no CGo) to parse source files and extract symbols. This package is isolated so the gotreesitter dependency can be replaced without affecting the rest of the codebase.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Symbol ¶
type Symbol struct {
Kind string `json:"kind"`
Name string `json:"name"`
Signature string `json:"signature"`
Line int `json:"line"` // 1-indexed
Body string `json:"-"` // full source text of the definition span; not serialized
}
Symbol is a structural element extracted from a source file.
Click to show internal directories.
Click to hide internal directories.