Changeset 20 for trunk/Compiler/Analyze/UAnalyzerPascal.pas
- Timestamp:
- Nov 9, 2010, 12:21:56 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/Analyze/UAnalyzerPascal.pas
r19 r20 91 91 try 92 92 Parser := TAnalyzerPascal.Create; 93 Parser.SourceCodeText := TStringList.Create;94 93 Parser.OnDebugLog := OnDebugLog; 95 94 Parser.ProgramCode := ProgramCode; 96 95 Parser.OnGetSource := OnGetSource; 97 96 if Assigned(OnGetSource) then begin 98 if OnGetSource(Name, Parser.SourceCode Text) then begin97 if OnGetSource(Name, Parser.SourceCode) then begin 99 98 Parser.Process; 100 99 Parser.FileName := Name; … … 107 106 end else Result := False; 108 107 finally 109 Parser.SourceCodeText.Free;110 108 Parser.Free; 111 109 end; … … 560 558 NewType: TType; 561 559 begin 560 Log('ParseCommonBlockInterface'); 562 561 with SourceCode do begin 563 562 while (NextToken <> 'implementation') and (NextTokenType <> ttEndOfFile) do begin
Note:
See TracChangeset
for help on using the changeset viewer.