The type-checker depended on (token.Pos) position information of the presented files to determine source order. That information is determined by the parse order of the files rather than the order in which the files are presented to the type-checker. Introduced an order number strictly determined by the file order as presented to the type-checker and the AST structure of each file; thus providing source order information even in the absence of (token.Pos) position information. Added test case (provided by adonovan). LGTM=adonovan R=adonovan CC=golang-codereviews https://golang.org/cl/151160043 |
||
---|---|---|
astutil | ||
blog | ||
cmd | ||
container/intsets | ||
cover | ||
dashboard | ||
go | ||
godoc | ||
imports | ||
oracle | ||
playground | ||
present | ||
refactor | ||
.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.