tools/go/analysis/passes/shift
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/a go/analysis/passes/shift: split out of vet 2018-10-11 18:00:20 +00:00
dead.go go/analysis/passes/shift: split out of vet 2018-10-11 18:00:20 +00:00
shift.go go/{analysis,packages}: add TypesSizes 2019-01-17 19:41:23 +00:00
shift_test.go go/analysis/passes: add doc and copyright comments 2018-10-16 20:28:15 +00:00