Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection struct {
Type types.Type
Elem types.Type
Key types.Type
Map bool
Items []CollectionItem
}
Collection describes a named slice or map binding.
type CollectionItem ¶
CollectionItem is one direct or imported multibinding contribution.
type Module ¶
type Module struct {
Name string
Model *model.Module
Parent *Module
Children []*Module
ScopeChildren []*Module
// contains filtered or unexported fields
}
Module is one instantiated dependency boundary.
type Node ¶
type Node struct {
ID int
Kind NodeKind
Position token.Pos
Module *Module
Callable *model.Callable
Value *model.Value
Outputs []types.Type
Inputs []types.Type
Dependencies []Edge
Fallible bool
Managed bool
Collection *Collection
Scope *Scope
}
Node is one atomic construction operation.
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver resolves typed entry points within module visibility rules.
func NewResolver ¶
NewResolver constructs a resolver for graph.
func (*Resolver) Diagnostics ¶
func (r *Resolver) Diagnostics() diagnostic.List
Diagnostics returns errors found while resolving keys.
func (*Resolver) ValidateExports ¶
ValidateExports checks every declared export below root, including unused ones. Scope seeds must be installed before calling it.
Click to show internal directories.
Click to hide internal directories.