collect

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrStdSymbol      = errors.New("std symbol")
	ErrExternalSymbol = errors.New("external symbol")
)

Functions

This section is empty.

Types

type CollectOption

type CollectOption struct {
	Language           uniast.Language
	LoadExternalSymbol bool
	NeedStdSymbol      bool
	NoNeedComment      bool
	NotNeedTest        bool
	Excludes           []string
	LoadByPackages     bool
}

type Collector

type Collector struct {
	CollectOption
	// contains filtered or unexported fields
}

func NewCollector

func NewCollector(repo string, cli *LSPClient) *Collector

func (*Collector) Collect

func (c *Collector) Collect(ctx context.Context) error

func (*Collector) Export

func (c *Collector) Export(ctx context.Context) (*uniast.Repository, error)

func (*Collector) ExportLocalFunction added in v0.2.0

func (c *Collector) ExportLocalFunction() map[Location]*DocumentSymbol

func (*Collector) ScannerByTreeSitter added in v0.2.0

func (c *Collector) ScannerByTreeSitter(ctx context.Context) ([]*DocumentSymbol, error)

func (*Collector) ScannerFile added in v0.2.0

func (c *Collector) ScannerFile(ctx context.Context) []*DocumentSymbol

Jump to

Keyboard shortcuts

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