Documentation
¶
Index ¶
- Variables
- func MakeJsLanguage(ctx context.Context, entrypoint string) (context.Context, language.Language[Data, js_grammar.File], error)
- type CompilerOptions
- type Data
- type ExportsCacheKey
- type Language
- func (l *Language) MakeNode(path string) (*graph.Node[Data], error)
- func (l *Language) ParseExports(file *js_grammar.File) (*language.ExportsResult, error)
- func (l *Language) ParseFile(id string) (*js_grammar.File, error)
- func (l *Language) ParseImports(file *js_grammar.File) (*language.ImportsResult, error)
- func (l *Language) ResolvePath(unresolved string, dir string) (string, error)
- type TsConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var Extensions = []string{
"js", "ts", "tsx", "jsx", "d.ts",
}
Functions ¶
Types ¶
type CompilerOptions ¶
type ExportsCacheKey ¶
type ExportsCacheKey string
type Language ¶
func (*Language) ParseExports ¶
func (l *Language) ParseExports(file *js_grammar.File) (*language.ExportsResult, error)
func (*Language) ParseImports ¶
func (l *Language) ParseImports(file *js_grammar.File) (*language.ImportsResult, error)
type TsConfig ¶
type TsConfig struct {
CompilerOptions CompilerOptions `json:"compilerOptions,omitempty"`
}
func ParseTsConfig ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.