tools/go/analysis/unitchecker
Alan Donovan b4b6fe2cb8 go/{analysis,packages}: add TypesSizes
Many Analyzers need to measure the width of an integer and all today
use hacks. This change causes analysis.Pass to retain and expose the
type sizing function used during type checking.

This in turn requires go/packages to retain and expose the type sizing
function in Packages.TypesSizes, which addresses a longstanding need
among many of its clients.

Change-Id: Ia8362019bcde34c10cb4fbc38cfdfddcbef3eb5c
Reviewed-on: https://go-review.googlesource.com/c/158317
Reviewed-by: Michael Matloob <matloob@golang.org>
Run-TryBot: Michael Matloob <matloob@golang.org>
2019-01-17 19:41:23 +00:00
..
testdata/src go/analysis/unitchecker: a main function for vet-lite tools 2018-11-15 16:00:22 +00:00
main.go go/analysis/cmd/vet-lite: remove 2018-11-19 17:56:07 +00:00
unitchecker.go go/{analysis,packages}: add TypesSizes 2019-01-17 19:41:23 +00:00
unitchecker112.go go/analysis/unitchecker: use importer.ForCompiler under go1.12 2018-12-04 18:22:59 +00:00
unitchecker_test.go go/analysis: harmonize flags across all checkers 2018-11-16 19:20:06 +00:00