mirror of
https://github.com/golang/go
synced 2024-11-18 18:04:46 -07:00
The Go programming language
03e05ec5a5
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> |
||
---|---|---|
benchmark/parse | ||
blog | ||
cmd | ||
container/intsets | ||
cover | ||
go | ||
godoc | ||
imports | ||
oracle | ||
playground | ||
present | ||
refactor | ||
.gitattributes | ||
.gitignore | ||
AUTHORS | ||
codereview.cfg | ||
CONTRIBUTING.md | ||
CONTRIBUTORS | ||
LICENSE | ||
PATENTS | ||
README |
This subrepository holds the source for various packages and tools that support the Go programming language. Some of the tools, godoc and vet for example, are included in binary Go distributions. Others, including the Go oracle and the test coverage tool, can be fetched with "go get". Packages include a type-checker for Go and an implementation of the Static Single Assignment form (SSA) representation for Go programs. To submit changes to this repository, see http://golang.org/doc/contribute.html.