tools/refactor
Alan Donovan 03e05ec5a5 refactor/rename: eliminate dependency on refactor/lexical package
so that we can delete that package.

lexicalLookup reconstructs the lexical scope from the existing tree of
types.Scope blocks, using source position information to determine
which prefix of declarations are visible.  (Inspired by Russ's
lookupAtPos in github.com/rsc/grind/grinder.)

forEachLexicalRef implements the part of the recursion from
refactor/lexical that enumerates the ast.Idents that use lexical
lookup.  (I would still like to eliminate this redundant logic by
having go/types record environments, as in CL 9493.)

Change-Id: I040ab33b508aad2dc68fd48850fe92ec072045d1
Reviewed-on: https://go-review.googlesource.com/9544
Reviewed-by: Sameer Ajmani <sameer@golang.org>
2015-08-31 20:58:11 +00:00
..
eg x/tools: disable tests not supported on Android 2015-08-06 00:36:03 +00:00
importgraph x/tools: disable tests not supported on Android 2015-08-06 00:36:03 +00:00
lexical x/tools: disable tests not supported on Android 2015-08-06 00:36:03 +00:00
rename refactor/rename: eliminate dependency on refactor/lexical package 2015-08-31 20:58:11 +00:00
satisfy go/types: move MethodSetCache into package go/types/typeutil 2015-06-05 17:34:01 +00:00
README go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00

README

golang.org/x/tools/refactor: libraries for refactoring tools.