aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/types2/predicates.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2021-11-03 08:39:41 -0700
committerRobert Griesemer <gri@golang.org>2021-11-04 02:57:43 +0000
commitad2044a498cbbb211fe14fd4eeb0a63709363cfc (patch)
tree090bb7b7b820fd0006d3ec084992de49466aa621 /src/cmd/compile/internal/types2/predicates.go
parent9e4e23c724bc2145c5aee6edf3ec60cc322047cc (diff)
downloadgo-ad2044a498cbbb211fe14fd4eeb0a63709363cfc.tar.gz
go-ad2044a498cbbb211fe14fd4eeb0a63709363cfc.zip
cmd/compile/internal/types2: rename is_X predicates back to isX (step 2 of 2)
This is s/is_/is/ throughout. No other changes. Change-Id: I1be77a209133edc68a6dec0677a4991a7683f116 Reviewed-on: https://go-review.googlesource.com/c/go/+/361134 Trust: Robert Griesemer <gri@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
Diffstat (limited to 'src/cmd/compile/internal/types2/predicates.go')
-rw-r--r--src/cmd/compile/internal/types2/predicates.go24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/cmd/compile/internal/types2/predicates.go b/src/cmd/compile/internal/types2/predicates.go
index 980d254084..5a82608671 100644
--- a/src/cmd/compile/internal/types2/predicates.go
+++ b/src/cmd/compile/internal/types2/predicates.go
@@ -25,18 +25,18 @@ func isGeneric(typ Type) bool {
return named != nil && named.obj != nil && named.targs == nil && named.TypeParams() != nil
}
-// The is_X predicates below report whether t is an X.
+// The isX predicates below report whether t is an X.
// If t is a type parameter the result is false; i.e.,
// these predicates don't look inside a type parameter.
-func is_Boolean(t Type) bool { return isBasic(t, IsBoolean) }
-func is_Integer(t Type) bool { return isBasic(t, IsInteger) }
-func is_Unsigned(t Type) bool { return isBasic(t, IsUnsigned) }
-func is_Float(t Type) bool { return isBasic(t, IsFloat) }
-func is_Complex(t Type) bool { return isBasic(t, IsComplex) }
-func is_Numeric(t Type) bool { return isBasic(t, IsNumeric) }
-func is_String(t Type) bool { return isBasic(t, IsString) }
-func is_IntegerOrFloat(t Type) bool { return isBasic(t, IsInteger|IsFloat) }
+func isBoolean(t Type) bool { return isBasic(t, IsBoolean) }
+func isInteger(t Type) bool { return isBasic(t, IsInteger) }
+func isUnsigned(t Type) bool { return isBasic(t, IsUnsigned) }
+func isFloat(t Type) bool { return isBasic(t, IsFloat) }
+func isComplex(t Type) bool { return isBasic(t, IsComplex) }
+func isNumeric(t Type) bool { return isBasic(t, IsNumeric) }
+func isString(t Type) bool { return isBasic(t, IsString) }
+func isIntegerOrFloat(t Type) bool { return isBasic(t, IsInteger|IsFloat) }
// isBasic reports whether under(t) is a basic type with the specified info.
// If t is a type parameter the result is false; i.e.,
@@ -47,10 +47,10 @@ 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 is_X is true
+// 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 is_X(structure(t)) (which
-// is the same as underIs(t, is_X)).
+// allX is an optimized version of isX(structure(t)) (which
+// is the same as underIs(t, isX)).
func allBoolean(t Type) bool { return allBasic(t, IsBoolean) }
func allInteger(t Type) bool { return allBasic(t, IsInteger) }