ford

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: 4 Imported by: 0

Documentation

Index

Constants

View Source
const EdgeKindDependsOn psi.EdgeKind = "depends_on"
View Source
const EdgeKindProvides psi.EdgeKind = "provides"
View Source
const EdgeKindRequires psi.EdgeKind = "requires"

Variables

This section is empty.

Functions

This section is empty.

Types

type EdgeCollection

type EdgeCollection[T psi.Node] struct {
	stdlib.NodeCollection[T]
	// contains filtered or unexported fields
}

func (*EdgeCollection[T]) Init

func (c *EdgeCollection[T]) Init(name psi.EdgeKind)

func (*EdgeCollection[T]) PsiNodeName

func (c *EdgeCollection[T]) PsiNodeName() string

type Network

type Network struct {
	stdlib.NodeCollection[*Node]
}

func NewNetwork

func NewNetwork() *Network

func (*Network) DependencyGraph

func (n *Network) DependencyGraph() graph.Directed

type Node

type Node struct {
	psi.NodeBase

	Name     string
	Requires []string
	Provides []string

	DependsOn EdgeCollection[*Node]
}

func (*Node) Init

func (n *Node) Init()

func (*Node) PsiNodeName

func (n *Node) PsiNodeName() string

Jump to

Keyboard shortcuts

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