nameresolve

package
v0.0.0-...-2e69b07 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Root     *Resolver
	Imported map[string]string // path -> prefix
	// contains filtered or unexported fields
}

File :

func (*File) Import

func (f *File) Import(pkg *types.Package)

Import :

func (*File) ImportFake

func (f *File) ImportFake(path, name string)

ImportFake :

func (*File) ImportWithName

func (f *File) ImportWithName(pkg *types.Package, name string)

ImportWithName :

func (*File) Name

func (f *File) Name(ob types.Object) string

Name :

func (*File) TypeName

func (f *File) TypeName(typ types.Type) string

TypeName :

func (*File) TypeNameForResults

func (f *File) TypeNameForResults(typ types.Type) string

TypeNameForResults :

type Resolver

type Resolver struct {
	Pkg *types.Package
}

Resolver :

func New

func New(pkg *types.Package) *Resolver

New :

func (*Resolver) File

func (r *Resolver) File(f *ast.File) *File

File :

Jump to

Keyboard shortcuts

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