Ignore:
Timestamp:
Oct 14, 2010, 8:41:34 AM (14 years ago)
Author:
george
Message:
  • Added: On parsing uses section load and parse unit files.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Transpascal/USourceCode.pas

    r55 r59  
    3333  TConstant = class;
    3434  TModule = class;
     35  TProgram = class;
    3536
    3637  TDevice = class
     
    268269
    269270  TUsedModuleList = class(TObjectList)
     271    ParentModule: TModule;
    270272  end;
    271273
    272274  TModule = class
    273275  public
     276    ParentProgram: TProgram;
    274277    Name: string;
    275278    constructor Create;
     
    731734  inherited;
    732735  UsedModules := TUsedModuleList.Create;
     736  UsedModules.ParentModule := Self;
    733737  Body := TCommonBlock.Create;
    734738end;
     
    746750begin
    747751  ImplementationSection := TUnitImplementation.Create;
     752  ImplementationSection.UsedModules.ParentModule := Self;
    748753  InterfaceSection := TUnitInterface.Create;
     754  InterfaceSection.UsedModules.ParentModule := Self;
    749755end;
    750756
Note: See TracChangeset for help on using the changeset viewer.