Changeset 68 for trunk/Compiler/USourceCode.pas
- Timestamp:
- Jul 30, 2012, 3:52:56 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/USourceCode.pas
r63 r68 31 31 TVariable = class; 32 32 TConstant = class; 33 T Module = class;33 TSourceModule = class; 34 34 TProgram = class; 35 35 … … 149 149 Name: string; 150 150 Parent: TCommonBlock; 151 ParentModule: T Module;151 ParentModule: TSourceModule; 152 152 Constants: TConstantList; 153 153 Types: TTypeList; … … 322 322 Name: string; 323 323 Location: string; 324 Module: T Module;324 Module: TSourceModule; 325 325 Exported: Boolean; 326 326 end; … … 330 330 331 331 TUsedModuleList = class(TListUsedModule) 332 ParentModule: T Module;333 end; 334 335 { T Module }336 337 T Module = class332 ParentModule: TSourceModule; 333 end; 334 335 { TSourceModule } 336 337 TSourceModule = class 338 338 public 339 339 ParentProgram: TProgram; … … 342 342 UsedModules: TUsedModuleList; 343 343 Body: TCommonBlock; 344 Internal: Boolean; 344 345 function SearchVariable(Name: string; Outside: Boolean): TVariable; virtual; 345 346 function SearchConstant(Name: string; Outside: Boolean): TConstant; virtual; … … 352 353 { TModuleProgram } 353 354 354 TModuleProgram = class(T Module)355 TModuleProgram = class(TSourceModule) 355 356 constructor Create; 356 357 destructor Destroy; override; … … 359 360 { TModuleUnit } 360 361 361 TModuleUnit = class(T Module)362 TModuleUnit = class(TSourceModule) 362 363 InititializeSection: TCommonBlock; 363 364 FinalalizeSection: TCommonBlock; … … 366 367 end; 367 368 368 TModulePackage = class(T Module)369 370 end; 371 372 TModuleLibrary = class(T Module)369 TModulePackage = class(TSourceModule) 370 371 end; 372 373 TModuleLibrary = class(TSourceModule) 373 374 end; 374 375 … … 379 380 380 381 TModuleList = class(TListModule) 381 function Search(Name: string): T Module;382 function Search(Name: string): TSourceModule; 382 383 end; 383 384 … … 387 388 Device: TDevice; 388 389 Modules: TModuleList; 389 MainModule: T Module;390 MainModule: TSourceModule; 390 391 procedure Clear; 391 392 constructor Create; … … 470 471 end; 471 472 472 { T Module }473 474 constructor T Module.Create;473 { TSourceModule } 474 475 constructor TSourceModule.Create; 475 476 begin 476 477 inherited; … … 481 482 end; 482 483 483 destructor T Module.Destroy;484 destructor TSourceModule.Destroy; 484 485 begin 485 486 Body.Free; … … 790 791 { TModuleList } 791 792 792 function TModuleList.Search(Name: string): T Module;793 function TModuleList.Search(Name: string): TSourceModule; 793 794 var 794 795 I: Integer; 795 796 begin 796 797 I := 0; 797 while (I < Count) and (LowerCase(T Module(Items[I]).Name) <> LowerCase(Name)) do Inc(I);798 if I < Count then Result := T Module(Items[I])798 while (I < Count) and (LowerCase(TSourceModule(Items[I]).Name) <> LowerCase(Name)) do Inc(I); 799 if I < Count then Result := TSourceModule(Items[I]) 799 800 else Result := nil; 800 801 end; … … 802 803 { TModuleProgram } 803 804 804 function T Module.SearchVariable(Name: string; Outside: Boolean): TVariable;805 function TSourceModule.SearchVariable(Name: string; Outside: Boolean): TVariable; 805 806 var 806 807 I: Integer; … … 817 818 end; 818 819 819 function T Module.SearchConstant(Name: string; Outside: Boolean): TConstant;820 begin 821 822 end; 823 824 function T Module.SearchType(AName: string; Outside: Boolean): TType;820 function TSourceModule.SearchConstant(Name: string; Outside: Boolean): TConstant; 821 begin 822 823 end; 824 825 function TSourceModule.SearchType(AName: string; Outside: Boolean): TType; 825 826 var 826 827 I: Integer; … … 840 841 end; 841 842 842 function T Module.SearchFunction(Name: string; Outside: Boolean): TFunction;843 function TSourceModule.SearchFunction(Name: string; Outside: Boolean): TFunction; 843 844 var 844 845 I: Integer;
Note:
See TracChangeset
for help on using the changeset viewer.