dependencies

package
v0.0.0-...-d3278e2 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependency

type Dependency interface {
	// TODO(ashmrtn): Add another function that points to the line the replacement
	// was done at.
	OriginalVersion() module.Version
	EffectiveVersion() module.Version
	Location() LocationTree
}

type FileLocation

type FileLocation struct {
	Row int
	Col int
}

type LocationTree

type LocationTree interface {
	ParentPackage() string
	OriginalLocation() FileLocation
	EffectiveLocation() FileLocation

	Ancestor() LocationTree
}

type PackageDependencies

type PackageDependencies interface {
	Replacements() []Dependency
	GetDep(packagePath string) Dependency
}

func NewProjectDependenciesFromModfile

func NewProjectDependenciesFromModfile(
	parentModDecl Dependency,
	modFilePath string,
) (PackageDependencies, error)

Jump to

Keyboard shortcuts

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