Changeset 66 for trunk/Compiler/UCompiler.pas
- Timestamp:
- Jul 19, 2012, 8:16:57 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/UCompiler.pas
r62 r66 38 38 FTarget: TTarget; 39 39 FOnErrorMessage: TErrorMessageEvent; 40 procedure ErrorMessage(Text: string; Position: TPoint; FileName: string);41 40 procedure SetAnalyzer(const AValue: TAnalyzer); 42 41 procedure AnalyzeAll; … … 45 44 public 46 45 AbstractCode: TProgram; 47 ErrorMessages: TListObject; 46 ErrorMessages: TListObject; // TListObject<TErrorMessage> 48 47 CompiledFolder: string; 49 48 … … 51 50 Targets: TListTarget; 52 51 MainSource: string; 52 procedure ErrorMessage(Text: string; Position: TPoint; FileName: string); 53 53 constructor Create; virtual; 54 54 destructor Destroy; override; 55 procedure Init; 55 procedure Init; virtual; 56 56 procedure Compile; 57 57 property OnErrorMessage: TErrorMessageEvent read FOnErrorMessage … … 246 246 if FTarget = AValue then Exit; 247 247 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; 251 253 end; 252 254
Note:
See TracChangeset
for help on using the changeset viewer.