renamer

package
v0.0.0-...-07240b3 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReportError = func(posn token.Position, message string) {
	fmt.Fprintf(os.Stderr, "%s: %s\n", posn, message)
}

Functions

This section is empty.

Types

type Renamer

type Renamer struct {
	// contains filtered or unexported fields
}

func New

func New(prog *loader.Program, to string) *Renamer

func (*Renamer) AddAllPackages

func (r *Renamer) AddAllPackages(pkgs ...*loader.PackageInfo)

func (*Renamer) AddPackage

func (r *Renamer) AddPackage(info *loader.PackageInfo)

func (*Renamer) AddPackages

func (r *Renamer) AddPackages(pkgs map[string]*loader.PackageInfo)

func (*Renamer) Update

func (r *Renamer) Update(objs ...types.Object) (map[*token.File]bool, error)

update checks and updates the input program returning the set of updated files.

Jump to

Keyboard shortcuts

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