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> |
||
|---|---|---|
| .. | ||
| eg | ||
| importgraph | ||
| lexical | ||
| rename | ||
| satisfy | ||
| README | ||
README
golang.org/x/tools/refactor: libraries for refactoring tools.