Lines Matching defs:Type

124 type Type struct {  struct
141 Extra interface{}
144 Width int64
146 methods Fields
147 allMethods Fields
149 Nod *Node // canonical OTYPE node
150 Orig *Type // original type (type literal or predefined type)
152 SliceOf *Type
153 PtrBase *Type
155 Sym *Sym // symbol containing name, for named types
156 Vargen int32 // unique name for OTYPE/ONAME
158 Etype EType // kind of type
159 Align uint8 // the required alignment of this type, in bytes
161 flags bitset8
173 func (t *Type) Local() bool { return t.flags&typeLocal != 0 }
174 func (t *Type) NotInHeap() bool { return t.flags&typeNotInHeap != 0 }
175 func (t *Type) Broke() bool { return t.flags&typeBroke != 0 }
176 func (t *Type) Noalg() bool { return t.flags&typeNoalg != 0 }
177 func (t *Type) Deferwidth() bool { return t.flags&typeDeferwidth != 0 }
178 func (t *Type) Recur() bool { return t.flags&typeRecur != 0 }
180 func (t *Type) SetLocal(b bool) { t.flags.set(typeLocal, b) }
181 func (t *Type) SetNotInHeap(b bool) { t.flags.set(typeNotInHeap, b) }
182 func (t *Type) SetBroke(b bool) { t.flags.set(typeBroke, b) }
183 func (t *Type) SetNoalg(b bool) { t.flags.set(typeNoalg, b) }
184 func (t *Type) SetDeferwidth(b bool) { t.flags.set(typeDeferwidth, b) }
185 func (t *Type) SetRecur(b bool) { t.flags.set(typeRecur, b) }
198 func (t *Type) MapType() *Map {
210 func (t *Type) ForwardType() *Forward {
232 func (t *Type) FuncType() *Func {
259 func (t *Type) StructType() *Struct {
296 func (t *Type) ChanType() *Chan {
329 Type *Type // field type member
444 func NewArray(elem *Type, bound int64) *Type {
455 func NewSlice(elem *Type) *Type {
470 func NewDDDArray(elem *Type) *Type {
478 func NewChan(elem *Type, dir ChanDir) *Type {
486 func NewTuple(t1, t2 *Type) *Type {
500 func NewMap(k, v *Type) *Type {
514 func NewPtr(elem *Type) *Type {
541 func NewDDDField(s *Type) *Type {
548 func NewChanArgs(c *Type) *Type {
555 func NewFuncArgs(f *Type) *Type {
569 func SubstAny(t *Type, types *[]*Type) *Type {
657 func (t *Type) Copy() *Type {
700 func (t *Type) wantEtype(et EType) {
706 func (t *Type) Recvs() *Type { return t.FuncType().Receiver }
707 func (t *Type) Params() *Type { return t.FuncType().Params }
708 func (t *Type) Results() *Type { return t.FuncType().Results }
711 func (t *Type) Recv() *Field {
732 func (t *Type) Key() *Type {
738 func (t *Type) Val() *Type {
745 func (t *Type) Elem() *Type {
761 func (t *Type) DDDField() *Type {
767 func (t *Type) ChanArgs() *Type {
773 func (t *Type) FuncArgs() *Type {
779 func (t *Type) Nname() *Node {
789 func (t *Type) SetNname(n *Node) {
799 func (t *Type) IsFuncArgStruct() bool {
803 func (t *Type) Methods() *Fields {
808 func (t *Type) AllMethods() *Fields {
813 func (t *Type) Fields() *Fields {
826 func (t *Type) Field(i int) *Field {
832 func (t *Type) FieldSlice() []*Field {
837 func (t *Type) SetFields(fields []*Field) {
862 func (t *Type) SetInterface(methods []*Field) {
867 func (t *Type) IsDDDArray() bool {
874 func (t *Type) WidthCalculated() bool {
880 func (t *Type) ArgWidth() int64 {
885 func (t *Type) Size() int64 {
896 func (t *Type) Alignment() int64 {
901 func (t *Type) SimpleString() string {
923 func (t *Type) Compare(x *Type) Cmp {
970 func (t *Type) cmp(x *Type) Cmp {
1159 func (t *Type) IsKind(et EType) bool {
1163 func (t *Type) IsBoolean() bool {
1182 func (t *Type) ToUnsigned() *Type {
1189 func (t *Type) IsInteger() bool {
1197 func (t *Type) IsSigned() bool {
1205 func (t *Type) IsFloat() bool {
1209 func (t *Type) IsComplex() bool {
1215 func (t *Type) IsPtr() bool {
1220 func (t *Type) IsUnsafePtr() bool {
1229 func (t *Type) IsPtrShaped() bool {
1234 func (t *Type) IsString() bool {
1238 func (t *Type) IsMap() bool {
1242 func (t *Type) IsChan() bool {
1246 func (t *Type) IsSlice() bool {
1250 func (t *Type) IsArray() bool {
1254 func (t *Type) IsStruct() bool {
1258 func (t *Type) IsInterface() bool {
1263 func (t *Type) IsEmptyInterface() bool {
1267 func (t *Type) ElemType() *Type {
1272 func (t *Type) PtrTo() *Type {
1276 func (t *Type) NumFields() int {
1279 func (t *Type) FieldType(i int) *Type {
1292 func (t *Type) FieldOff(i int) int64 {
1295 func (t *Type) FieldName(i int) string {
1299 func (t *Type) NumElem() int64 {
1311 func (t *Type) SetNumElem(n int64) {
1322 func (t *Type) ChanDir() ChanDir {
1327 func (t *Type) IsMemory() bool {
1330 func (t *Type) IsFlags() bool { return t == TypeFlags }
1331 func (t *Type) IsVoid() bool { return t == TypeVoid }
1332 func (t *Type) IsTuple() bool { return t.Etype == TTUPLE }
1335 func (t *Type) IsUntyped() bool {
1349 func Haspointers(t *Type) bool {
1376 func (t *Type) HasPointer() bool {
1383 func (t *Type) Symbol() *obj.LSym {
1390 func (t *Type) Tie() byte {