parser

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainsRel

type ContainsRel struct {
	ParentID   string // Can be File path or Class ID
	ChildID    string
	ParentType string // "File" or "Class"
	ChildType  string // "Function", "Class", "Variable"
}

type ImplementsRel

type ImplementsRel struct {
	FromClassID string
	ToClassName string // Name of interface/class it extends/implements
}

type ParsedResult

type ParsedResult struct {
	FilePath   string
	Functions  []db.FunctionEntity
	Classes    []db.ClassEntity
	Variables  []db.VariableEntity
	Contains   []ContainsRel
	Implements []ImplementsRel
}

func ParseFile

func ParseFile(filePath string) (*ParsedResult, error)

ParseFile parses a source file using Tree-sitter and returns extracted entities.

Jump to

Keyboard shortcuts

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