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> |
||
---|---|---|
.. | ||
testdata/src/a | ||
asmdecl.go | ||
asmdecl_test.go |