compiler: add Type::message_name
commite86066a71e684065fae6910b9e2aaf37d7177e01
authorIan Lance Taylor <iant@golang.org>
Fri, 20 Oct 2023 17:25:04 +0000 (20 10:25 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 5 Feb 2024 19:26:01 +0000 (5 11:26 -0800)
tree29aabb316dd7b27d2a03276f7e7ef380b209a8f2
parent51f8ac3341078303e81e72d9013698a31c5ddd29
compiler: add Type::message_name

As we move toward generics, the error messages need to be able
to refer to types in a readable manner.  Add that capability,
and use it today in AST dumps.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/536716
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/ast-dump.cc
gcc/go/gofrontend/types.cc
gcc/go/gofrontend/types.h