OLD | NEW |
1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 /* | 5 /* |
6 * Runtime type representation; master is type.go | 6 * Runtime type representation; master is type.go |
7 * | 7 * |
8 * The Type*s here correspond 1-1 to type.go's *rtype. | 8 * The Type*s here correspond 1-1 to type.go's *rtype. |
9 */ | 9 */ |
10 | 10 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 Type *key; | 71 Type *key; |
72 Type *elem; | 72 Type *elem; |
73 Type *bucket; // internal type representing a hash bucket | 73 Type *bucket; // internal type representing a hash bucket |
74 Type *hmap; // internal type representing a Hmap | 74 Type *hmap; // internal type representing a Hmap |
75 }; | 75 }; |
76 | 76 |
77 struct ChanType | 77 struct ChanType |
78 { | 78 { |
79 Type; | 79 Type; |
80 Type *elem; | 80 Type *elem; |
| 81 Type *buffer; // internal type representing a chan buffer |
81 uintptr dir; | 82 uintptr dir; |
82 }; | 83 }; |
83 | 84 |
84 struct SliceType | 85 struct SliceType |
85 { | 86 { |
86 Type; | 87 Type; |
87 Type *elem; | 88 Type *elem; |
88 }; | 89 }; |
89 | 90 |
90 struct FuncType | 91 struct FuncType |
91 { | 92 { |
92 Type; | 93 Type; |
93 bool dotdotdot; | 94 bool dotdotdot; |
94 Slice in; | 95 Slice in; |
95 Slice out; | 96 Slice out; |
96 }; | 97 }; |
97 | 98 |
98 struct PtrType | 99 struct PtrType |
99 { | 100 { |
100 Type; | 101 Type; |
101 Type *elem; | 102 Type *elem; |
102 }; | 103 }; |
OLD | NEW |