Changeset 65 for branches/Transpascal/Compiler/USourceCode.pas
- Timestamp:
- Oct 18, 2010, 8:53:48 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Transpascal/Compiler/USourceCode.pas
r64 r65 158 158 end; 159 159 160 { TTypeRecord } 160 TTypeInherited = class(TType) 161 end; 161 162 162 163 TTypeRecord = class(TType) … … 169 170 IndexType: TType; 170 171 ItemType: TType; 172 end; 173 174 TTypePointer = class(TType) 175 end; 176 177 TEnumItem = class 178 Name: string; 179 Index: Integer; 180 end; 181 182 TTypeEnumeration = class(TType) 183 Items: TObjectList; // TObjectList<TEnumItem> 184 constructor Create; 185 destructor Destroy; override; 186 end; 187 188 { TTypeClass } 189 190 TTypeClass = class(TType) 191 Items: TObjectList; // TObjectList<TType> 192 constructor Create; 193 destructor Destroy; override; 171 194 end; 172 195 … … 787 810 end; 788 811 812 { TTypeEnumeration } 813 814 constructor TTypeEnumeration.Create; 815 begin 816 inherited; 817 Items := TObjectList.Create; 818 end; 819 820 destructor TTypeEnumeration.Destroy; 821 begin 822 Items.Free; 823 inherited Destroy; 824 end; 825 826 { TTypeClass } 827 828 constructor TTypeClass.Create; 829 begin 830 Items := TObjectList.Create; 831 end; 832 833 destructor TTypeClass.Destroy; 834 begin 835 Items.Free; 836 inherited Destroy; 837 end; 838 789 839 end. 790 840
Note:
See TracChangeset
for help on using the changeset viewer.