typescript

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package typescript provides TypeScript/JavaScript chunking using tree-sitter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider chunks TypeScript files using tree-sitter.

func New

func New() *Provider

New creates a new TypeScript chunking provider.

func NewJavaScript

func NewJavaScript() *Provider

NewJavaScript creates a provider configured for JavaScript files.

func (*Provider) Chunk

func (p *Provider) Chunk(_ context.Context, _ string, content []byte) ([]chisel.Chunk, error)

Chunk parses TypeScript/JavaScript source and extracts semantic chunks.

func (*Provider) Language

func (p *Provider) Language() chisel.Language

Language returns the language identifier.

Jump to

Keyboard shortcuts

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