Ignore:
Timestamp:
Jul 19, 2012, 8:16:57 AM (12 years ago)
Author:
chronos
Message:
  • Added: Information text about completion of build process including elapsed time.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Compiler/UCompiler.pas

    r62 r66  
    3838    FTarget: TTarget;
    3939    FOnErrorMessage: TErrorMessageEvent;
    40     procedure ErrorMessage(Text: string; Position: TPoint; FileName: string);
    4140    procedure SetAnalyzer(const AValue: TAnalyzer);
    4241    procedure AnalyzeAll;
     
    4544  public
    4645    AbstractCode: TProgram;
    47     ErrorMessages: TListObject;
     46    ErrorMessages: TListObject; // TListObject<TErrorMessage>
    4847    CompiledFolder: string;
    4948
     
    5150    Targets: TListTarget;
    5251    MainSource: string;
     52    procedure ErrorMessage(Text: string; Position: TPoint; FileName: string);
    5353    constructor Create; virtual;
    5454    destructor Destroy; override;
    55     procedure Init;
     55    procedure Init; virtual;
    5656    procedure Compile;
    5757    property OnErrorMessage: TErrorMessageEvent read FOnErrorMessage
     
    246246  if FTarget = AValue then Exit;
    247247  FTarget := AValue;
    248   FTarget.Compiler := Self;
    249   if Assigned(FTarget.Producer) then
    250     FTarget.Producer.OnWriteTarget := OnSaveTarget;
     248  if Assigned(FTarget) then begin
     249    FTarget.Compiler := Self;
     250    if Assigned(FTarget.Producer) then
     251      FTarget.Producer.OnWriteTarget := OnSaveTarget;
     252  end;
    251253end;
    252254
Note: See TracChangeset for help on using the changeset viewer.