strategies

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 4 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() *astkit.Registry

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 NewC

func NewC() *cStrategy

func NewCPP

func NewCPP() *cStrategy

func NewCSharp

func NewCSharp() *csharpStrategy

func NewGo

func NewGo() *goStrategy

func NewJava

func NewJava() *javaStrategy

func NewJavaScript

func NewJavaScript() *jsLike

func NewPHP

func NewPHP() *phpStrategy

func NewPython

func NewPython() *pythonStrategy

func NewRust

func NewRust() *rustStrategy

func NewTypeScript

func NewTypeScript(tsx bool) *jsLike

Types

This section is empty.

Jump to

Keyboard shortcuts

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