The parser does intra-file resolution. It's only a best-effort but it's extremely fast, so we try it first and fall back to the loader-based implementation if it fails. Also: - factor definitionResult so it doesn't depend on either go/types.Object or go/ast.Object. - guessImportPath: make importPath=="" result an error, since you can't import the empty string. Simplify importQueryPackage. - Make fastQueryPos continue in face of minor parse errors. - describe: eliminate old TODO; suppress log statement. Change-Id: I30a32487e9fd9d5308b1580ec12220cad2c16299 Reviewed-on: https://go-review.googlesource.com/19507 Reviewed-by: Daniel Morsing <daniel.morsing@gmail.com> |
||
|---|---|---|
| benchmark/parse | ||
| blog | ||
| cmd | ||
| container/intsets | ||
| cover | ||
| go | ||
| godoc | ||
| imports | ||
| oracle | ||
| playground | ||
| present | ||
| refactor | ||
| .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 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.