]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: start translating type params in noder2
authorDan Scales <danscales@google.com>
Fri, 29 Jan 2021 01:43:18 +0000 (17:43 -0800)
committerDan Scales <danscales@google.com>
Sat, 30 Jan 2021 00:42:35 +0000 (00:42 +0000)
commit0aafd6912422570625414da6e5ed5ba2c371fcec
tree27788ad91dbfa27bbfbbe2239bd1c31aad2b8714
parenta59cb5109d49ac0dc09337449b9c7760ecc66c0e
[dev.typeparams] cmd/compile: start translating type params in noder2

Also, make some fmt changes so that the type parameters and the
typeparam type are displayed in -W=2.

You can now parse a simple generic function (but not generic calls or generic
types) and print out the noder IR via 'go tool compile -G=2 -W=2 func.go'

Change-Id: I1f070fc4a96174a447763ad37999e61c25905901
Reviewed-on: https://go-review.googlesource.com/c/go/+/287833
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Dan Scales <danscales@google.com>
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/noder/types.go
src/cmd/compile/internal/types/fmt.go
src/cmd/compile/internal/types/size.go
src/cmd/compile/internal/types/type.go
src/cmd/compile/internal/types2/type.go