Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PackageNotFoundError = errors.New("package not found")
Functions ¶
This section is empty.
Types ¶
type DecoratorResolver ¶ added in v0.16.0
type DecoratorResolver interface {
ResolveIdent(file *ast.File, parent ast.Node, parentField string, id *ast.Ident) (path string, err error)
}
DecoratorResolver resolves an identifier to a local or remote reference.
Returns path == "" if the node is not a local or remote reference (e.g. a field in a composite literal, the selector in a selector expression etc.).
Returns path == "" is the node is a local reference.
Returns path != "" is the node is a remote reference.
type RestorerResolver ¶ added in v0.16.0
RestorerResolver resolves a package path to a package name.
Click to show internal directories.
Click to hide internal directories.