Skip to content

Commit

Permalink
Update verbose output
Browse files Browse the repository at this point in the history
  • Loading branch information
lsegal committed Aug 12, 2015
1 parent e83a20c commit 88501e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions awsmigrate/awsmigrate-renamer/rename/rename.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,19 +91,19 @@ func (r *renamer) parseUses(pkg *loader.PackageInfo) {
switch t := v.(type) {
case *types.Func:
if newName, ok := renames.operations[t.Name()]; ok && newName != name {
r.print("%s Renaming operation %s to %s\n", r.dryInfo(), name, newName)
r.print("%s Rename [OPERATION]: %q -> %q\n", r.dryInfo(), name, newName)
r.files[r.Fset.File(k.Pos())] = true
k.Name = newName
}
case *types.TypeName:
if newName, ok := renames.shapes[name]; ok && newName != name {
r.print("%s Renaming shape %s to %s\n", r.dryInfo(), t.Name(), newName)
r.print("%s Rename [SHAPE]: %q -> %q\n", r.dryInfo(), t.Name(), newName)
r.files[r.Fset.File(k.Pos())] = true
k.Name = newName
}
case *types.Var:
if newName, ok := renames.fields[name]; ok && newName != name {
r.print("%s Renaming field %s to %s\n", r.dryInfo(), t.Name(), newName)
r.print("%s Rename [FIELD]: %q -> %q\n", r.dryInfo(), t.Name(), newName)
r.files[r.Fset.File(k.Pos())] = true
k.Name = newName
}
Expand Down

0 comments on commit 88501e9

Please sign in to comment.