diff options
author | Robert Findley <rfindley@google.com> | 2021-08-16 12:09:56 -0400 |
---|---|---|
committer | Robert Findley <rfindley@google.com> | 2021-08-16 18:44:12 +0000 |
commit | 2460cf8602aa1830bf712bf70f7dc8882bbfa79c (patch) | |
tree | 759022a80f3ea58d1bf46d9c42f002131c3a3222 /src/go | |
parent | 281ed619f87fb2d3758f9c378984a16f9d822401 (diff) | |
download | go-2460cf8602aa1830bf712bf70f7dc8882bbfa79c.tar.gz go-2460cf8602aa1830bf712bf70f7dc8882bbfa79c.zip |
go/types: remove Named.SetTArgs
This is a port of CL 341290 to go/types; SetTArgs is a potentially
error-prone API.
Change-Id: I484e62d71a0e09be1e19f8e63994912a88364eca
Reviewed-on: https://go-review.googlesource.com/c/go/+/342476
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'src/go')
-rw-r--r-- | src/go/types/named.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/go/types/named.go b/src/go/types/named.go index 791ab78778..208327929f 100644 --- a/src/go/types/named.go +++ b/src/go/types/named.go @@ -132,9 +132,6 @@ func (t *Named) NumTArgs() int { return len(t.targs) } // TArgs returns the i'th type argument of the named type t for 0 <= i < t.NumTArgs(). func (t *Named) TArg(i int) Type { return t.targs[i] } -// SetTArgs sets the type arguments of the named type t. -func (t *Named) SetTArgs(args []Type) { t.targs = args } - // NumMethods returns the number of explicit methods whose receiver is named type t. func (t *Named) NumMethods() int { return len(t.load().methods) } |