Ignore:
Timestamp:
Oct 30, 2010, 9:21:38 PM (14 years ago)
Author:
george
Message:
  • Modified: TObjectList replaced by specialized generic TListObject.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Transpascal/Compiler/USourceCode.pas

    r81 r82  
    66
    77uses
    8   SysUtils, Variants, Classes,
    9   Dialogs, Contnrs;
     8  SysUtils, Variants, Classes, Dialogs, ListObject;
    109
    1110type
     
    6059  TFunctionCall = class(TCommand)
    6160    FunctionRef: TFunction;
    62     ParameterExpression: TObjectList; // TObjectList<TExpression>
     61    ParameterExpression: TListObject; // TListObject<TExpression>
    6362    constructor Create;
    6463    destructor Destroy; override;
     
    118117  TCaseOfEnd = class(TCommand)
    119118    Expression: TExpression;
    120     Branches: TObjectList; // TObjectList<TCaseOfEndBranche>
     119    Branches: TListObject; // TListObject<TCaseOfEndBranche>
    121120    ElseCommand: TCommand;
    122121    constructor Create;
     
    134133  end;
    135134
    136   TCommandList = class(TObjectList)
     135  TCommandList = class(TListObject)
    137136
    138137  end;
     
    190189
    191190  TTypeEnumeration = class(TType)
    192     Items: TObjectList; // TObjectList<TEnumItem>
     191    Items: TListObject; // TListObject<TEnumItem>
    193192    constructor Create;
    194193    destructor Destroy; override;
     
    198197
    199198  TTypeClass = class(TType)
    200     Items: TObjectList; // TObjectList<TType>
    201     constructor Create;
    202     destructor Destroy; override;
    203   end;
    204 
    205   TTypeList = class(TObjectList)
     199    Items: TListObject; // TListObject<TType>
     200    constructor Create;
     201    destructor Destroy; override;
     202  end;
     203
     204  TTypeList = class(TListObject)
    206205    Parent: TCommonBlock;
    207206    function Search(Name: string; Exported: Boolean = False): TType;
     
    217216  end;
    218217
    219   TConstantList = class(TObjectList)
     218  TConstantList = class(TListObject)
    220219    Parent: TCommonBlock;
    221220    function Search(Name: string): TConstant;
     
    230229  end;
    231230
    232   TVariableList = class(TObjectList)
     231  TVariableList = class(TListObject)
    233232    Parent: TCommonBlock;
    234233    function Search(Name: string; Exported: Boolean = False): TVariable;
     
    239238  end;
    240239
    241   TParameterList = class(TObjectList)
     240  TParameterList = class(TListObject)
    242241    Parent: TFunction;
    243242    function Search(Name: string): TParameter;
     
    262261  end;
    263262
    264   TExpressionList = class(TObjectList)
     263  TExpressionList = class(TListObject)
    265264    destructor Destroy; override;
    266265  end;
     
    279278  end;
    280279
    281   TFunctionList = class(TObjectList)
     280  TFunctionList = class(TListObject)
    282281    Parent: TCommonBlock;
    283282    function Search(Name: string; Exported: Boolean = False): TFunction;
     
    292291  end;
    293292
    294   TUsedModuleList = class(TObjectList)
     293  TUsedModuleList = class(TListObject)
    295294    ParentModule: TModule;
    296295  end;
     
    335334  { TModuleList }
    336335
    337   TModuleList = class(TObjectList)
     336  TModuleList = class(TListObject)
    338337    function Search(Name: string): TModule;
    339338  end;
     
    669668begin
    670669  inherited;
    671   Branches := TObjectList.Create
     670  Branches := TListObject.Create
    672671end;
    673672
     
    696695begin
    697696  inherited;
    698   ParameterExpression := TObjectList.Create;
     697  ParameterExpression := TListObject.Create;
    699698end;
    700699
     
    830829begin
    831830  inherited;
    832   Items := TObjectList.Create;
     831  Items := TListObject.Create;
    833832end;
    834833
     
    843842constructor TTypeClass.Create;
    844843begin
    845   Items := TObjectList.Create;
     844  Items := TListObject.Create;
    846845end;
    847846
Note: See TracChangeset for help on using the changeset viewer.