Documentation
¶
Overview ¶
Package typescript provides TypeScript/JavaScript extraction for knowledge graphs.
Index ¶
Constants ¶
View Source
const ( // Language is the canonical name for TypeScript. Language = "typescript" // NodePrefix is the prefix for all TypeScript node IDs. NodePrefix = "ts_" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Extractor ¶
type Extractor struct {
// contains filtered or unexported fields
}
Extractor implements extract.LanguageExtractor for TypeScript source code.
func (*Extractor) CanExtract ¶
CanExtract returns true for TypeScript/JavaScript files.
func (*Extractor) DetectFramework ¶
func (e *Extractor) DetectFramework(path string) *provider.FrameworkInfo
DetectFramework returns framework information if detected.
func (*Extractor) Extensions ¶
Extensions returns TypeScript/JavaScript file extensions.
func (*Extractor) ExtractFile ¶
ExtractFile extracts nodes and edges from a single TypeScript file.
Click to show internal directories.
Click to hide internal directories.