Changeset 82 for branches/Transpascal/Compiler/USourceCode.pas
- Timestamp:
- Oct 30, 2010, 9:21:38 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Transpascal/Compiler/USourceCode.pas
r81 r82 6 6 7 7 uses 8 SysUtils, Variants, Classes, 9 Dialogs, Contnrs; 8 SysUtils, Variants, Classes, Dialogs, ListObject; 10 9 11 10 type … … 60 59 TFunctionCall = class(TCommand) 61 60 FunctionRef: TFunction; 62 ParameterExpression: T ObjectList; // TObjectList<TExpression>61 ParameterExpression: TListObject; // TListObject<TExpression> 63 62 constructor Create; 64 63 destructor Destroy; override; … … 118 117 TCaseOfEnd = class(TCommand) 119 118 Expression: TExpression; 120 Branches: T ObjectList; // TObjectList<TCaseOfEndBranche>119 Branches: TListObject; // TListObject<TCaseOfEndBranche> 121 120 ElseCommand: TCommand; 122 121 constructor Create; … … 134 133 end; 135 134 136 TCommandList = class(T ObjectList)135 TCommandList = class(TListObject) 137 136 138 137 end; … … 190 189 191 190 TTypeEnumeration = class(TType) 192 Items: T ObjectList; // TObjectList<TEnumItem>191 Items: TListObject; // TListObject<TEnumItem> 193 192 constructor Create; 194 193 destructor Destroy; override; … … 198 197 199 198 TTypeClass = class(TType) 200 Items: T ObjectList; // TObjectList<TType>201 constructor Create; 202 destructor Destroy; override; 203 end; 204 205 TTypeList = class(T ObjectList)199 Items: TListObject; // TListObject<TType> 200 constructor Create; 201 destructor Destroy; override; 202 end; 203 204 TTypeList = class(TListObject) 206 205 Parent: TCommonBlock; 207 206 function Search(Name: string; Exported: Boolean = False): TType; … … 217 216 end; 218 217 219 TConstantList = class(T ObjectList)218 TConstantList = class(TListObject) 220 219 Parent: TCommonBlock; 221 220 function Search(Name: string): TConstant; … … 230 229 end; 231 230 232 TVariableList = class(T ObjectList)231 TVariableList = class(TListObject) 233 232 Parent: TCommonBlock; 234 233 function Search(Name: string; Exported: Boolean = False): TVariable; … … 239 238 end; 240 239 241 TParameterList = class(T ObjectList)240 TParameterList = class(TListObject) 242 241 Parent: TFunction; 243 242 function Search(Name: string): TParameter; … … 262 261 end; 263 262 264 TExpressionList = class(T ObjectList)263 TExpressionList = class(TListObject) 265 264 destructor Destroy; override; 266 265 end; … … 279 278 end; 280 279 281 TFunctionList = class(T ObjectList)280 TFunctionList = class(TListObject) 282 281 Parent: TCommonBlock; 283 282 function Search(Name: string; Exported: Boolean = False): TFunction; … … 292 291 end; 293 292 294 TUsedModuleList = class(T ObjectList)293 TUsedModuleList = class(TListObject) 295 294 ParentModule: TModule; 296 295 end; … … 335 334 { TModuleList } 336 335 337 TModuleList = class(T ObjectList)336 TModuleList = class(TListObject) 338 337 function Search(Name: string): TModule; 339 338 end; … … 669 668 begin 670 669 inherited; 671 Branches := T ObjectList.Create670 Branches := TListObject.Create 672 671 end; 673 672 … … 696 695 begin 697 696 inherited; 698 ParameterExpression := T ObjectList.Create;697 ParameterExpression := TListObject.Create; 699 698 end; 700 699 … … 830 829 begin 831 830 inherited; 832 Items := T ObjectList.Create;831 Items := TListObject.Create; 833 832 end; 834 833 … … 843 842 constructor TTypeClass.Create; 844 843 begin 845 Items := T ObjectList.Create;844 Items := TListObject.Create; 846 845 end; 847 846
Note:
See TracChangeset
for help on using the changeset viewer.