Documentation
¶
Overview ¶
Package languages provides syntax-only adapters backed by upstream Tree-sitter grammars.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Capability ¶
type Capability struct {
Language string `json:"language"`
Structural bool `json:"structural"`
Semantic bool `json:"semantic"`
Method string `json:"method"`
}
func Capabilities ¶
func Capabilities() []Capability
type Import ¶
type Import struct {
Language string
Module string
Names []string
Line int
// System marks a C/C++ #include <...>, searched only in include
// directories, not next to the including file.
System bool
}
Import is one import specifier as written in a source file. Names lists imported members, which may themselves be submodules (Python `from . import x`).
type Result ¶
type Result struct {
Nodes []model.Node
Edges []model.Edge
Diagnostics []model.Diagnostic
// Imports keeps raw specifiers for later repository-level path resolution.
Imports []Import
// Package is the declared Java package, which import resolution and test
// selection key on instead of the directory layout.
Package string
}
Click to show internal directories.
Click to hide internal directories.