Most objects are declared by an identifier, so the end position is start+len(name). However, this heuristic doesn't work for PkgName objects because a (non-renaming) import creates an object without an identifier. Fixes issue github.com/Microsoft/vscode-go#562 Change-Id: I0eb44ca33a643c910d97abbf700ea4c3cd23bb41 Reviewed-on: https://go-review.googlesource.com/32440 Reviewed-by: Robert Griesemer <gri@golang.org> |
||
|---|---|---|
| benchmark/parse | ||
| blog | ||
| cmd | ||
| container/intsets | ||
| cover | ||
| go | ||
| godoc | ||
| imports | ||
| playground | ||
| present | ||
| refactor | ||
| third_party | ||
| .gitattributes | ||
| .gitignore | ||
| AUTHORS | ||
| CONTRIBUTING.md | ||
| 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 guru 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.