]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/types2: implement compiler helper functions without using under
authorRobert Griesemer <gri@golang.org>
Wed, 3 Nov 2021 19:39:43 +0000 (12:39 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 4 Nov 2021 02:57:53 +0000 (02:57 +0000)
commit2cf85b1fb8b3b6629b834016735ddeaaf7b96fda
tree939b54181b5a74117582ab8bf733cafd9040aa29
parent5fd0c49a4d8cd3bfff3c06e17a0fd9c41bc2f64a
cmd/compile/internal/types2: implement compiler helper functions without using under

These functions are exported for the compiler and are used after
type checking is finished. There is no need to call under() in
their implementations; they can rely entirely on the public API.
This opens the door to moving them into the compiler eventually.
They may also be slightly more efficient.

Change-Id: Ib4f83d2dcf82e3c319c3147e01ecaea684553ea5
Reviewed-on: https://go-review.googlesource.com/c/go/+/361214
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/type.go