X7ROOT File Manager
Current Path:
/opt/golang/1.19.4/src/cmd/compile/internal/typecheck
opt
/
golang
/
1.19.4
/
src
/
cmd
/
compile
/
internal
/
typecheck
/
📁
..
📄
bexport.go
(2.05 KB)
📁
builtin
📄
builtin.go
(15.47 KB)
📄
builtin_test.go
(624 B)
📄
const.go
(20.73 KB)
📄
crawler.go
(11.82 KB)
📄
dcl.go
(8.26 KB)
📄
export.go
(2.24 KB)
📄
expr.go
(22.15 KB)
📄
func.go
(22.75 KB)
📄
iexport.go
(53.48 KB)
📄
iimport.go
(44.98 KB)
📄
mkbuiltin.go
(5.96 KB)
📄
stmt.go
(15.65 KB)
📄
subr.go
(44.91 KB)
📄
syms.go
(2.87 KB)
📄
target.go
(312 B)
📄
type.go
(178 B)
📄
typecheck.go
(43.16 KB)
📄
universe.go
(5.19 KB)
Editing: bexport.go
// Copyright 2015 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. package typecheck import "cmd/compile/internal/types" // ---------------------------------------------------------------------------- // Export format // Tags. Must be < 0. const ( // Objects packageTag = -(iota + 1) constTag typeTag varTag funcTag endTag // Types namedTag arrayTag sliceTag dddTag structTag pointerTag signatureTag interfaceTag mapTag chanTag // Values falseTag trueTag int64Tag floatTag fractionTag // not used by gc complexTag stringTag nilTag unknownTag // not used by gc (only appears in packages with errors) // Type aliases aliasTag ) var predecl []*types.Type // initialized lazily func predeclared() []*types.Type { if predecl == nil { // initialize lazily to be sure that all // elements have been initialized before predecl = []*types.Type{ // basic types types.Types[types.TBOOL], types.Types[types.TINT], types.Types[types.TINT8], types.Types[types.TINT16], types.Types[types.TINT32], types.Types[types.TINT64], types.Types[types.TUINT], types.Types[types.TUINT8], types.Types[types.TUINT16], types.Types[types.TUINT32], types.Types[types.TUINT64], types.Types[types.TUINTPTR], types.Types[types.TFLOAT32], types.Types[types.TFLOAT64], types.Types[types.TCOMPLEX64], types.Types[types.TCOMPLEX128], types.Types[types.TSTRING], // basic type aliases types.ByteType, types.RuneType, // error types.ErrorType, // untyped types types.UntypedBool, types.UntypedInt, types.UntypedRune, types.UntypedFloat, types.UntypedComplex, types.UntypedString, types.Types[types.TNIL], // package unsafe types.Types[types.TUNSAFEPTR], // invalid type (package contains errors) types.Types[types.Txxx], // any type, for builtin export data types.Types[types.TANY], // comparable types.ComparableType, // any types.AnyType, } } return predecl }
Upload File
Create Folder