diff options
author | Robert Griesemer <gri@golang.org> | 2023-01-09 14:19:27 -0800 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2023-01-17 19:55:39 +0000 |
commit | 8ed5a161ce85ee6d1e5fdef097a57593cfe15185 (patch) | |
tree | 0a69480b50efec4ae96f1f23f04879cbc499b27a /src/go/types/predicates.go | |
parent | 97f843b51f69f392bb09b24c077aca505e519551 (diff) | |
download | go-8ed5a161ce85ee6d1e5fdef097a57593cfe15185.tar.gz go-8ed5a161ce85ee6d1e5fdef097a57593cfe15185.zip |
go/types: generate more files from types2 sources
Change-Id: I5e00b4367d7288867b03702d0c76b8210c125668
Reviewed-on: https://go-review.googlesource.com/c/go/+/461083
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Robert Griesemer <gri@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
Diffstat (limited to 'src/go/types/predicates.go')
-rw-r--r-- | src/go/types/predicates.go | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/go/types/predicates.go b/src/go/types/predicates.go index b26b5beb9c..c80d41d702 100644 --- a/src/go/types/predicates.go +++ b/src/go/types/predicates.go @@ -1,3 +1,5 @@ +// Code generated by "go run generator.go"; DO NOT EDIT. + // Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -34,13 +36,13 @@ func isBasic(t Type, info BasicInfo) bool { // allX is an optimized version of isX(coreType(t)) (which // is the same as underIs(t, isX)). -func allBoolean(typ Type) bool { return allBasic(typ, IsBoolean) } -func allInteger(typ Type) bool { return allBasic(typ, IsInteger) } -func allUnsigned(typ Type) bool { return allBasic(typ, IsUnsigned) } -func allNumeric(typ Type) bool { return allBasic(typ, IsNumeric) } -func allString(typ Type) bool { return allBasic(typ, IsString) } -func allOrdered(typ Type) bool { return allBasic(typ, IsOrdered) } -func allNumericOrString(typ Type) bool { return allBasic(typ, IsNumeric|IsString) } +func allBoolean(t Type) bool { return allBasic(t, IsBoolean) } +func allInteger(t Type) bool { return allBasic(t, IsInteger) } +func allUnsigned(t Type) bool { return allBasic(t, IsUnsigned) } +func allNumeric(t Type) bool { return allBasic(t, IsNumeric) } +func allString(t Type) bool { return allBasic(t, IsString) } +func allOrdered(t Type) bool { return allBasic(t, IsOrdered) } +func allNumericOrString(t Type) bool { return allBasic(t, 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 |