tools/go
Robert Griesemer a05da76c7b go.tools/go/types: represent built-ins as Objects (rather than types)
This change affects the API: Func objects now always have a *Signature
as type (never a *Builtin). Instead, built-ins now appear as *Builtin
objects. Only the built-in name is exposed, other fields are now private
to go/types.

Several bugs are fixed:
- correctly checking for built-ins permitted in statement context
- expression statements that are calls are not type-checked twice anymore
- go/defer statements report call types and provide good error messages now

This CL will briefly break the build until CL 13848043 is submitted.

R=adonovan
CC=golang-dev
https://golang.org/cl/13813043
2013-09-23 15:14:17 -07:00
..
exact go.tools/go/types: clean up assignment checks (round 1) 2013-07-08 09:40:30 -07:00
types go.tools/go/types: represent built-ins as Objects (rather than types) 2013-09-23 15:14:17 -07:00
vcs go.tools/go/vcs: apply fix to issue 5801. 2013-09-09 12:49:08 -07:00