langsupport

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	SuppliedFiles map[string]bool
	DirToFiles    map[string][]string
	JavaFiles     []string
	KotlinFiles   []string
	GoFiles       []string
}

Context contains precomputed project data shared across language resolvers.

type Graph

type Graph interface {
	Vertex(hash string) (string, error)
	AddEdge(sourceHash, targetHash string, options ...func(*graphlib.EdgeProperties)) error
}

Graph is the minimal graph contract language resolvers need during finalization.

type MaturityLevel

type MaturityLevel int

MaturityLevel describes how complete a language's analysis support is.

const (
	MaturityUntested MaturityLevel = iota
	MaturityBasicTests
	MaturityActivelyTested
	MaturityStable
)

func MaturityLevels

func MaturityLevels() []MaturityLevel

MaturityLevels returns the ordered set of known maturity levels.

func (MaturityLevel) DisplayName

func (level MaturityLevel) DisplayName() string

func (MaturityLevel) Symbol

func (level MaturityLevel) Symbol() string

type Module

type Module interface {
	Name() string
	Extensions() []string
	Maturity() MaturityLevel
	NewResolver(ctx *Context, contentReader vcs.ContentReader) Resolver
	IsTestFile(filePath string, contentReader vcs.ContentReader) bool
}

Module describes pluggable language support.

type Resolver

type Resolver interface {
	ResolveProjectImports(absPath, filePath, ext string) ([]string, error)
	FinalizeGraph(graph Graph) error
}

Resolver resolves project imports for one language and can finalize graph-wide state.

Jump to

Keyboard shortcuts

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