codetools: fixed ConvertDelphiToLazarusSource reparse after adding mode delphi

git-svn-id: trunk@23767 -
This commit is contained in:
mattias 2010-02-23 12:01:42 +00:00
parent 8c970975ee
commit 34bcf2c445

View File

@ -3941,21 +3941,16 @@ begin
Result:=false; Result:=false;
if SourceChangeCache=nil then exit; if SourceChangeCache=nil then exit;
SourceChangeCache.MainScanner:=Scanner; SourceChangeCache.MainScanner:=Scanner;
SourceChangeCache.BeginUpdate; DebugLn('ConvertDelphiToLazarusSource AddModeDelphiDirective');
try if not AddModeDelphiDirective then exit;
DebugLn('ConvertDelphiToLazarusSource AddModeDelphiDirective'); DebugLn('ConvertDelphiToLazarusSource RemoveDFMResourceDirective');
if not AddModeDelphiDirective then exit; if not RemoveDFMResourceDirective then exit;
DebugLn('ConvertDelphiToLazarusSource RemoveDFMResourceDirective'); DebugLn('ConvertDelphiToLazarusSource AddLRSIncludeDirective');
if not RemoveDFMResourceDirective then exit; if not AddLRSIncludeDirective then exit;
DebugLn('ConvertDelphiToLazarusSource AddLRSIncludeDirective'); DebugLn('ConvertDelphiToLazarusSource ConvertUsedUnits');
if not AddLRSIncludeDirective then exit; if not ConvertUsedUnits then exit;
DebugLn('ConvertDelphiToLazarusSource ConvertUsedUnits'); DebugLn('ConvertDelphiToLazarusSource Apply');
if not ConvertUsedUnits then exit; if not SourceChangeCache.Apply then exit;
DebugLn('ConvertDelphiToLazarusSource Apply');
if not SourceChangeCache.Apply then exit;
finally
SourceChangeCache.EndUpdate;
end;
DebugLn('ConvertDelphiToLazarusSource END'); DebugLn('ConvertDelphiToLazarusSource END');
Result:=true; Result:=true;
end; end;