project

package
v0.0.0-...-7b96089 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterLanguage

func RegisterLanguage(name psi.LanguageID, factory LanguageFactory)

Types

type LanguageFactory

type LanguageFactory func(p Project) psi.Language

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager() *Manager

func (*Manager) AddProject

func (m *Manager) AddProject(p Project)

type Project

type Project interface {
	psi.Node

	TaskManager() *tasks.Manager
	LogManager() *thoughtstream.Manager

	RootPath() string
	RootNode() psi.Node
	Repo() *fti.Repository
	FS() repofs.FS
	FileSet() *token.FileSet
	Graph() psi.Graph
	LanguageProvider() *Registry

	Sync() error
	Commit() error

	GetSourceFile(path string) (psi.SourceFile, error)
}

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func NewRegistry

func NewRegistry(project Project) *Registry

func (*Registry) Resolve

func (r *Registry) Resolve(language psi.LanguageID) psi.Language

func (*Registry) ResolveExtension

func (r *Registry) ResolveExtension(fileName string) psi.Language

Jump to

Keyboard shortcuts

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