Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractPythonAll ¶
ExtractPythonAll parses a Python file and returns static __all__ names and assignment line.
Types ¶
type ExtractionResult ¶
ExtractionResult holds the elements and edges extracted from a parsed file.
type Extractor ¶
type Extractor interface {
Extract(result *parser.ParseResult) (*ExtractionResult, error)
}
Extractor defines the interface for language-specific code extraction.
func ForLanguage ¶
ForLanguage returns the appropriate Extractor for the given language. Returns nil if the language is not supported.
type GoExtractor ¶
type GoExtractor struct{}
GoExtractor extracts elements and edges from Go source files.
func (*GoExtractor) Extract ¶
func (e *GoExtractor) Extract(result *parser.ParseResult) (*ExtractionResult, error)
Extract parses Go source and extracts elements and edges.
type PythonExtractor ¶
type PythonExtractor struct{}
PythonExtractor extracts elements and edges from Python source files.
func (*PythonExtractor) Extract ¶
func (e *PythonExtractor) Extract(result *parser.ParseResult) (*ExtractionResult, error)
Extract parses Python source and extracts elements and edges.
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver performs name resolution for elements using both simple names and fully qualified names. When multiple elements share a name, the last one wins.
func NewResolver ¶
NewResolver creates a Resolver populated with name-to-ID and fqname-to-ID mappings.
type RustExtractor ¶
type RustExtractor struct{}
RustExtractor extracts elements and edges from Rust source files.
func (*RustExtractor) Extract ¶
func (e *RustExtractor) Extract(result *parser.ParseResult) (*ExtractionResult, error)
Extract parses Rust source and extracts elements and edges.