Documentation
¶
Overview ¶
Package strategies provides per-language astkit.Strategy implementations built on the shared tree-sitter extractors defined in extractors.go.
Each strategy is a small adapter: Language() / Extensions() / Extract() / ExtractImports(). Extraction is delegated to the per-language extract*Nodes function; import scanning is performed via AST traversal using the internalast helper package.
Index ¶
- func Default() *astkit.Registry
- func NewC() *cStrategy
- func NewCPP() *cStrategy
- func NewCSharp() *csharpStrategy
- func NewGo() *goStrategy
- func NewJava() *javaStrategy
- func NewJavaScript() *jsLike
- func NewPHP() *phpStrategy
- func NewPython() *pythonStrategy
- func NewRust() *rustStrategy
- func NewTypeScript(tsx bool) *jsLike
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Default ¶
Default returns a Registry pre-populated with every strategy astkit ships. TypeScript is registered both under "typescript" and "tsx"; JavaScript under "javascript". C++ shares its strategy registration distinct from C.
func NewJavaScript ¶
func NewJavaScript() *jsLike
func NewTypeScript ¶
func NewTypeScript(tsx bool) *jsLike
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.