]> Cypherpunks repositories - gostls13.git/commit
go/types: gotype to always report the same first error now
authorRobert Griesemer <gri@golang.org>
Wed, 1 Mar 2017 23:35:24 +0000 (15:35 -0800)
committerRobert Griesemer <gri@golang.org>
Thu, 2 Mar 2017 22:29:45 +0000 (22:29 +0000)
commit9eac1c87a60de7b2b9a4fba01e31a852c01aaf97
tree9193a9d3d43e11742461c6e3a2daca1b9b766531
parent3a90bfb2531c373be05bfe8ff27ba475f9c75cb2
go/types: gotype to always report the same first error now

The old code may have reported different errors given an
erroneous package depending on the order in which files
were parsed concurrently. The new code always reports
errors in "file order", independent of processing order.

Also:
- simplified parsing code and internal concurrency control
- removed -seq flag which didn't really add useful functionality

Change-Id: I18e24e630f458f2bc107a7b83926ae761d63c334
Reviewed-on: https://go-review.googlesource.com/37655
Reviewed-by: Alan Donovan <adonovan@google.com>
src/go/types/gotype.go