$70 GRAYBYTE WORDPRESS FILE MANAGER $83

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/lib/golang/src/cmd/compile/internal/types2/

HOME
Current File : /lib/golang/src/cmd/compile/internal/types2//compilersupport.go
// Copyright 2021 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.

// Helper functions exported for the compiler.
// Do not use internally.

package types2

// If t is a pointer, AsPointer returns that type, otherwise it returns nil.
func AsPointer(t Type) *Pointer {
	u, _ := t.Underlying().(*Pointer)
	return u
}

// If t is a signature, AsSignature returns that type, otherwise it returns nil.
func AsSignature(t Type) *Signature {
	u, _ := t.Underlying().(*Signature)
	return u
}

// If typ is a type parameter, CoreType returns the single underlying
// type of all types in the corresponding type constraint if it exists, or
// nil otherwise. If the type set contains only unrestricted and restricted
// channel types (with identical element types), the single underlying type
// is the restricted channel type if the restrictions are always the same.
// If typ is not a type parameter, CoreType returns the underlying type.
func CoreType(t Type) Type {
	u, _ := commonUnder(t, nil)
	return u
}

// RangeKeyVal returns the key and value types for a range over typ.
// It panics if range over typ is invalid.
func RangeKeyVal(typ Type) (Type, Type) {
	key, val, _, ok := rangeKeyVal(nil, typ, nil)
	assert(ok)
	return key, val
}

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
4 Dec 2025 6.06 PM
root / root
0755
README.md
4.551 KB
4 Dec 2025 6.06 PM
root / root
0644
alias.go
5.962 KB
4 Dec 2025 6.06 PM
root / root
0644
api.go
17.76 KB
4 Dec 2025 6.06 PM
root / root
0644
api_predicates.go
3.321 KB
4 Dec 2025 6.06 PM
root / root
0644
array.go
0.784 KB
4 Dec 2025 6.06 PM
root / root
0644
assignments.go
16.821 KB
4 Dec 2025 6.06 PM
root / root
0644
basic.go
1.484 KB
4 Dec 2025 6.06 PM
root / root
0644
builtins.go
29.327 KB
4 Dec 2025 6.06 PM
root / root
0644
call.go
31.94 KB
4 Dec 2025 6.06 PM
root / root
0644
chan.go
0.889 KB
4 Dec 2025 6.06 PM
root / root
0644
check.go
21.714 KB
4 Dec 2025 6.06 PM
root / root
0644
compiler_internal.go
1.362 KB
4 Dec 2025 6.06 PM
root / root
0644
compilersupport.go
1.295 KB
4 Dec 2025 6.06 PM
root / root
0644
const.go
7.528 KB
4 Dec 2025 6.06 PM
root / root
0644
context.go
4.306 KB
4 Dec 2025 6.06 PM
root / root
0644
conversions.go
8.955 KB
4 Dec 2025 6.06 PM
root / root
0644
decl.go
29.765 KB
4 Dec 2025 6.06 PM
root / root
0644
errors.go
6.594 KB
4 Dec 2025 6.06 PM
root / root
0644
errsupport.go
4.402 KB
4 Dec 2025 6.06 PM
root / root
0644
expr.go
41.219 KB
4 Dec 2025 6.06 PM
root / root
0644
format.go
3.931 KB
4 Dec 2025 6.06 PM
root / root
0644
gccgosizes.go
1.017 KB
4 Dec 2025 6.06 PM
root / root
0644
gcsizes.go
4.233 KB
4 Dec 2025 6.06 PM
root / root
0644
index.go
10.974 KB
4 Dec 2025 6.06 PM
root / root
0644
infer.go
27.036 KB
4 Dec 2025 6.06 PM
root / root
0644
initorder.go
10.006 KB
4 Dec 2025 6.06 PM
root / root
0644
instantiate.go
13.105 KB
4 Dec 2025 6.06 PM
root / root
0644
interface.go
6.253 KB
4 Dec 2025 6.06 PM
root / root
0644
labels.go
7.257 KB
4 Dec 2025 6.06 PM
root / root
0644
literals.go
12.751 KB
4 Dec 2025 6.06 PM
root / root
0644
lookup.go
22.531 KB
4 Dec 2025 6.06 PM
root / root
0644
map.go
0.644 KB
4 Dec 2025 6.06 PM
root / root
0644
mono.go
9.09 KB
4 Dec 2025 6.06 PM
root / root
0644
named.go
24.237 KB
4 Dec 2025 6.06 PM
root / root
0644
object.go
21.985 KB
4 Dec 2025 6.06 PM
root / root
0644
objset.go
0.906 KB
4 Dec 2025 6.06 PM
root / root
0644
operand.go
12.072 KB
4 Dec 2025 6.06 PM
root / root
0644
package.go
2.927 KB
4 Dec 2025 6.06 PM
root / root
0644
pointer.go
0.62 KB
4 Dec 2025 6.06 PM
root / root
0644
predicates.go
17.483 KB
4 Dec 2025 6.06 PM
root / root
0644
range.go
9.248 KB
4 Dec 2025 6.06 PM
root / root
0644
recording.go
4.58 KB
4 Dec 2025 6.06 PM
root / root
0644
resolver.go
25.425 KB
4 Dec 2025 6.06 PM
root / root
0644
return.go
4.366 KB
4 Dec 2025 6.06 PM
root / root
0644
scope.go
7.529 KB
4 Dec 2025 6.06 PM
root / root
0644
selection.go
5.781 KB
4 Dec 2025 6.06 PM
root / root
0644
signature.go
16.755 KB
4 Dec 2025 6.06 PM
root / root
0644
sizes.go
8.816 KB
4 Dec 2025 6.06 PM
root / root
0644
slice.go
0.563 KB
4 Dec 2025 6.06 PM
root / root
0644
stmt.go
23.145 KB
4 Dec 2025 6.06 PM
root / root
0644
struct.go
6.564 KB
4 Dec 2025 6.06 PM
root / root
0644
subst.go
10.311 KB
4 Dec 2025 6.06 PM
root / root
0644
termlist.go
3.77 KB
4 Dec 2025 6.06 PM
root / root
0644
tuple.go
0.907 KB
4 Dec 2025 6.06 PM
root / root
0644
type.go
0.309 KB
4 Dec 2025 6.06 PM
root / root
0644
typelists.go
1.842 KB
4 Dec 2025 6.06 PM
root / root
0644
typeparam.go
5.099 KB
4 Dec 2025 6.06 PM
root / root
0644
typeset.go
13.209 KB
4 Dec 2025 6.06 PM
root / root
0644
typestring.go
12.354 KB
4 Dec 2025 6.06 PM
root / root
0644
typeterm.go
3.519 KB
4 Dec 2025 6.06 PM
root / root
0644
typexpr.go
16.229 KB
4 Dec 2025 6.06 PM
root / root
0644
under.go
4.21 KB
4 Dec 2025 6.06 PM
root / root
0644
unify.go
27.768 KB
4 Dec 2025 6.06 PM
root / root
0644
union.go
6.252 KB
4 Dec 2025 6.06 PM
root / root
0644
universe.go
9.233 KB
4 Dec 2025 6.06 PM
root / root
0644
util.go
2.313 KB
4 Dec 2025 6.06 PM
root / root
0644
validtype.go
10.238 KB
4 Dec 2025 6.06 PM
root / root
0644
version.go
2.032 KB
4 Dec 2025 6.06 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF