github.com/ltltlt/go-source-code@v0.0.0-20190830023027-95be009773aa/cmd/compile/internal/gc/types.go (about)

     1  // Copyright 2009 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package gc
     6  
     7  import (
     8  	"cmd/compile/internal/types"
     9  )
    10  
    11  // convenience constants
    12  const (
    13  	Txxx = types.Txxx
    14  
    15  	TINT8    = types.TINT8
    16  	TUINT8   = types.TUINT8
    17  	TINT16   = types.TINT16
    18  	TUINT16  = types.TUINT16
    19  	TINT32   = types.TINT32
    20  	TUINT32  = types.TUINT32
    21  	TINT64   = types.TINT64
    22  	TUINT64  = types.TUINT64
    23  	TINT     = types.TINT
    24  	TUINT    = types.TUINT
    25  	TUINTPTR = types.TUINTPTR
    26  
    27  	TCOMPLEX64  = types.TCOMPLEX64
    28  	TCOMPLEX128 = types.TCOMPLEX128
    29  
    30  	TFLOAT32 = types.TFLOAT32
    31  	TFLOAT64 = types.TFLOAT64
    32  
    33  	TBOOL = types.TBOOL
    34  
    35  	TPTR32 = types.TPTR32
    36  	TPTR64 = types.TPTR64
    37  
    38  	TFUNC      = types.TFUNC
    39  	TSLICE     = types.TSLICE
    40  	TARRAY     = types.TARRAY
    41  	TSTRUCT    = types.TSTRUCT
    42  	TCHAN      = types.TCHAN
    43  	TMAP       = types.TMAP
    44  	TINTER     = types.TINTER
    45  	TFORW      = types.TFORW
    46  	TANY       = types.TANY
    47  	TSTRING    = types.TSTRING
    48  	TUNSAFEPTR = types.TUNSAFEPTR
    49  
    50  	// pseudo-types for literals
    51  	TIDEAL = types.TIDEAL
    52  	TNIL   = types.TNIL
    53  	TBLANK = types.TBLANK
    54  
    55  	// pseudo-types for frame layout
    56  	TFUNCARGS = types.TFUNCARGS
    57  	TCHANARGS = types.TCHANARGS
    58  
    59  	// pseudo-types for import/export
    60  	TDDDFIELD = types.TDDDFIELD // wrapper: contained type is a ... field
    61  
    62  	NTYPE = types.NTYPE
    63  )