]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/syntax: print type parameters and type lists
authorRobert Griesemer <gri@golang.org>
Thu, 4 Mar 2021 02:33:45 +0000 (18:33 -0800)
committerRobert Griesemer <gri@golang.org>
Thu, 4 Mar 2021 22:20:29 +0000 (22:20 +0000)
commita99ff24a26939f30440dd0f06dce426ed5e638ee
tree130202788ccb64a05f53351f985780cc03d71b3c
parent9d3718e834fcf5b602b84539364606445cfc8a1a
cmd/compile/internal/syntax: print type parameters and type lists

types2 uses the syntax printer to print expressions (for tracing
or error messages), so we need to (at least) print type lists in
interfaces.

While at it, also implement the printing of type parameter lists.

Fixes #44766.

Change-Id: I36a4a7152d9bef7251af264b5c7890aca88d8dc3
Reviewed-on: https://go-review.googlesource.com/c/go/+/298549
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/syntax/printer.go
src/cmd/compile/internal/syntax/printer_test.go