goast

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: MIT Imports: 7 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdentResolver

type IdentResolver struct {
	PackageResolver resolver.PackageResolver
	// contains filtered or unexported fields
}

IdentResolver is a simple ident resolver that parses the imports block of the file and resolves qualified identifiers using resolved package names. It is not possible to resolve identifiers in dot-imported packages without the full export data of the imported package, so this resolver will return an error if it encounters a dot-import. See gotypes.IdentResolver for a dot-imports capable ident resolver.

func (*IdentResolver) ResolveIdent

func (r *IdentResolver) ResolveIdent(file *ast.File, parent ast.Node, id *ast.Ident) (string, error)

Jump to

Keyboard shortcuts

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