Changeset 71 for trunk/Compiler/Modules


Ignore:
Timestamp:
Aug 1, 2012, 6:20:01 AM (12 years ago)
Author:
chronos
Message:
  • Modified: Modules should use modularsystem API object.
Location:
trunk/Compiler/Modules
Files:
4 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Compiler/Modules/Pascal/UModulePascal.pas

    r70 r71  
    66
    77uses
    8   Classes, SysUtils, UModularSystem;
     8  Classes, SysUtils, UModularSystem, UAnalyzerPascal;
    99
    1010type
     
    1313
    1414  TModulePascal = class(TModule)
     15    Analyzer: TAnalyzerPascal;
    1516    constructor Create; override;
    1617    destructor Destroy; override;
     
    2122
    2223implementation
     24
     25uses
     26  UCompilerAPI;
    2327
    2428{ TModulePascal }
     
    3943procedure TModulePascal.Install;
    4044begin
     45  with TCompilerAPI(API) do begin
     46    Analyzer := TAnalyzerPascal.Create;
     47    Analyzers.Add(Analyzer);
     48  end;
    4149  inherited Install;
    4250end;
     
    4553begin
    4654  inherited Uninstall;
     55  with TCompilerAPI(API) do begin
     56    Analyzers.Remove(Analyzer);
     57  end;
    4758end;
    4859
Note: See TracChangeset for help on using the changeset viewer.