Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Locator ¶
type Locator struct {
// contains filtered or unexported fields
}
func NewLocator ¶
func NewLocator() *Locator
func (*Locator) FindIdentType ¶
func (l *Locator) FindIdentType(context *LocatorContext, ref *ast.Ident) (TypeDiscovery, error)
func (*Locator) FindSelectorType ¶
func (l *Locator) FindSelectorType(context *LocatorContext, ref *ast.SelectorExpr) (TypeDiscovery, error)
type LocatorContext ¶
type LocatorContext struct {
// contains filtered or unexported fields
}
func NewASTFileLocatorContext ¶
func NewASTFileLocatorContext(astFile *ast.File, location string) *LocatorContext
func NewSingleLocationContext ¶
func NewSingleLocationContext(location string) *LocatorContext
func (*LocatorContext) AliasedLocation ¶
func (c *LocatorContext) AliasedLocation(alias string) (string, bool)
func (*LocatorContext) CandidateLocations ¶
func (c *LocatorContext) CandidateLocations(alias string) []string
func (*LocatorContext) LocalLocations ¶
func (c *LocatorContext) LocalLocations() []string
func (*LocatorContext) NonLocalNonAliasedLocations ¶
func (c *LocatorContext) NonLocalNonAliasedLocations(alias string) []string
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
func NewResolver ¶
func (*Resolver) ResolveType ¶
type TypeDiscovery ¶
type TypeNotFoundError ¶
type TypeNotFoundError struct {
Name string
}
func (*TypeNotFoundError) Error ¶
func (e *TypeNotFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.