]> Cypherpunks repositories - gostls13.git/commit
exp/types/staging: more flexible API, cleanups
authorRobert Griesemer <gri@golang.org>
Mon, 8 Oct 2012 01:02:19 +0000 (18:02 -0700)
committerRobert Griesemer <gri@golang.org>
Mon, 8 Oct 2012 01:02:19 +0000 (18:02 -0700)
commit0d9474206f2822f8a892a42bc36b2809a6be3184
tree7cfab5b3b00c3ddc496c310ddc8cca009f37cc28
parent5224875055d5738f18f194b4d5dbfb5babd33a21
exp/types/staging: more flexible API, cleanups

- Changed Check signature to take function parameters for
  more flexibility: Now a client can interrupt type checking
  early (via panic in one the upcalls) once the desired
  type information or number of errors is reached. Default
  use is still simple.

- Cleaned up main typechecking loops. Now does not neglect
  _ declarations anymore.

- Various other cleanups.

R=golang-dev, r, rsc
CC=golang-dev
https://golang.org/cl/6612049
src/pkg/exp/types/staging/check.go
src/pkg/exp/types/staging/errors.go
src/pkg/exp/types/staging/gcimporter.go
src/pkg/exp/types/staging/gcimporter_test.go
src/pkg/exp/types/staging/types.go