Documentation
¶
Overview ¶
Package typescript implements a v0.3 TypeScript extractor backed by tree-sitter. Scope is intentionally narrow: identifier-level declarations (functions, classes, methods, interfaces, types, fields, exports, imports). Cross-file type resolution and IMPLEMENTS edges are deferred to v0.4+ (would require tsserver-equivalent capability).
Index ¶
- type Extractor
- func (e *Extractor) Extensions() []string
- func (e *Extractor) Extract(_ context.Context, _ string, _ []byte) ([]core.Symbol, []core.Edge, error)
- func (e *Extractor) ExtractRepo(ctx context.Context, root string) ([]core.Symbol, []core.Edge, error)
- func (e *Extractor) FQN(_ context.Context, file string, scopePath []string, name string) core.FQN
- func (e *Extractor) Language() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Extractor ¶
type Extractor struct{}
Extractor implements extract.RepoExtractor for TypeScript.
func (*Extractor) Extensions ¶
func (*Extractor) Extract ¶
func (e *Extractor) Extract(_ context.Context, _ string, _ []byte) ([]core.Symbol, []core.Edge, error)
Extract is the per-file API; v0.3 doesn't use it directly.
func (*Extractor) ExtractRepo ¶
func (e *Extractor) ExtractRepo(ctx context.Context, root string) ([]core.Symbol, []core.Edge, error)
ExtractRepo walks all .ts/.tsx files under root, honoring the cross- extractor scope filter.
Click to show internal directories.
Click to hide internal directories.