aboutsummaryrefslogtreecommitdiff
path: root/src/go/types/predicates.go
diff options
context:
space:
mode:
authorRobert Findley <rfindley@google.com>2021-11-15 22:23:24 -0500
committerRobert Findley <rfindley@google.com>2021-11-16 14:33:39 +0000
commit67c15568156eb0c5607edc51a2b5d69876ba236d (patch)
tree787c996eda67af835b9597919af5ea9b3940efad /src/go/types/predicates.go
parentbddb79f0faa11958ff473109398be684c088a6a9 (diff)
downloadgo-67c15568156eb0c5607edc51a2b5d69876ba236d.tar.gz
go-67c15568156eb0c5607edc51a2b5d69876ba236d.zip
go/types: rename structure to structuralType
This is a clean port of CL 362994 from types2 to go/types. Change-Id: I51b38c35ec3306274ef0355516e2d5557e7d8b46 Reviewed-on: https://go-review.googlesource.com/c/go/+/363988 Trust: Robert Findley <rfindley@google.com> Reviewed-by: Robert Griesemer <gri@golang.org> Run-TryBot: Robert Findley <rfindley@google.com> TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'src/go/types/predicates.go')
-rw-r--r--src/go/types/predicates.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/go/types/predicates.go b/src/go/types/predicates.go
index e7f9d3b1db..2d9b9c4c07 100644
--- a/src/go/types/predicates.go
+++ b/src/go/types/predicates.go
@@ -33,7 +33,7 @@ func isBasic(t Type, info BasicInfo) bool {
// The allX predicates below report whether t is an X.
// If t is a type parameter the result is true if isX is true
// for all specified types of the type parameter's type set.
-// allX is an optimized version of isX(structure(t)) (which
+// allX is an optimized version of isX(structuralType(t)) (which
// is the same as underIs(t, isX)).
func allBoolean(typ Type) bool { return allBasic(typ, IsBoolean) }
@@ -47,7 +47,7 @@ func allNumericOrString(typ Type) bool { return allBasic(typ, IsNumeric|IsString
// allBasic reports whether under(t) is a basic type with the specified info.
// If t is a type parameter, the result is true if isBasic(t, info) is true
// for all specific types of the type parameter's type set.
-// allBasic(t, info) is an optimized version of isBasic(structure(t), info).
+// allBasic(t, info) is an optimized version of isBasic(structuralType(t), info).
func allBasic(t Type, info BasicInfo) bool {
switch u := under(t).(type) {
case *Basic: