With this CL, an Object.Parent() Scope is always the scope in which the object was originally declared. For dot-imported objects, that is the package scope of the package from which the objects are imported (not the file scope into which they are imported). Also: - Changed Scope.Insert to be agnostic regarding blank identifiers - blank identifiers must be handled outside. - Fixed handling of blank labels: they are never declared. Fixes golang/go#7537. LGTM=adonovan R=adonovan CC=golang-codereviews https://golang.org/cl/75570043 |
||
|---|---|---|
| astutil | ||
| blog | ||
| cmd | ||
| cover | ||
| dashboard | ||
| go | ||
| godoc | ||
| imports | ||
| oracle | ||
| playground | ||
| present | ||
| .hgignore | ||
| AUTHORS | ||
| CONTRIBUTORS | ||
| LICENSE | ||
| PATENTS | ||
| README | ||
| codereview.cfg | ||
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.