rust

package
v0.17.5 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Extensions = []string{
	"rs",
}
View Source
var MakeModTree = utils.Cached2In1OutErr(_MakeModTree)

Functions

func MakeRustLanguage

func MakeRustLanguage(entrypoint string, _ *Config) (language.Language[rust_grammar.File], error)

Types

type Config added in v0.17.4

type Config struct{}

type Language

type Language struct {
	CargoTomlPath     string
	ProjectEntrypoint string
	ModTree           *ModTree
}

func (*Language) ParseExports

func (l *Language) ParseExports(file *rust_grammar.File) (*language.ExportsEntries, error)

func (*Language) ParseFile

func (l *Language) ParseFile(id string) (*rust_grammar.File, error)

func (*Language) ParseImports

func (l *Language) ParseImports(file *rust_grammar.File) (*language.ImportsResult, error)

type ModTree

type ModTree struct {
	Name     string
	Path     string
	Parent   *ModTree
	Children map[string]*ModTree
}

func (*ModTree) Search

func (m *ModTree) Search(modChain []string) *ModTree

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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