1
0
mirror of https://github.com/golang/go synced 2024-11-18 20:14:43 -07:00
go/cmd
Robert Griesemer 6d85cc17dd go.tools/go/types: request type Info via maps instead of callbacks
Allmost all uses of go/types that wanted the type
information computed, installed callback functions
that stored the information in maps. Most of the
time this is the only thing that could be done because
there is no guarantee that types are completely set
up before the end of type-checking.

This CL removes the respective Context callbacks in favor
of corresponding maps that collect the desired information
on demand, grouped together in an optional Info struct.

R=adonovan
CC=golang-dev
https://golang.org/cl/11530044
2013-07-18 13:09:03 -07:00
..
cover go.tools/cmd/cover: get cover counters on if conditions 2013-07-10 15:20:52 +10:00
godoc godoc: more cleanup 2013-07-18 13:51:17 +10:00
vet go.tools/go/types: request type Info via maps instead of callbacks 2013-07-18 13:09:03 -07:00