mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-07 05:38:29 +02:00
codetools: fixed ConvertDelphiToLazarusSource reparse after adding mode delphi
git-svn-id: trunk@23767 -
This commit is contained in:
parent
8c970975ee
commit
34bcf2c445
@ -3941,8 +3941,6 @@ begin
|
|||||||
Result:=false;
|
Result:=false;
|
||||||
if SourceChangeCache=nil then exit;
|
if SourceChangeCache=nil then exit;
|
||||||
SourceChangeCache.MainScanner:=Scanner;
|
SourceChangeCache.MainScanner:=Scanner;
|
||||||
SourceChangeCache.BeginUpdate;
|
|
||||||
try
|
|
||||||
DebugLn('ConvertDelphiToLazarusSource AddModeDelphiDirective');
|
DebugLn('ConvertDelphiToLazarusSource AddModeDelphiDirective');
|
||||||
if not AddModeDelphiDirective then exit;
|
if not AddModeDelphiDirective then exit;
|
||||||
DebugLn('ConvertDelphiToLazarusSource RemoveDFMResourceDirective');
|
DebugLn('ConvertDelphiToLazarusSource RemoveDFMResourceDirective');
|
||||||
@ -3953,9 +3951,6 @@ begin
|
|||||||
if not ConvertUsedUnits then exit;
|
if not ConvertUsedUnits then exit;
|
||||||
DebugLn('ConvertDelphiToLazarusSource Apply');
|
DebugLn('ConvertDelphiToLazarusSource Apply');
|
||||||
if not SourceChangeCache.Apply then exit;
|
if not SourceChangeCache.Apply then exit;
|
||||||
finally
|
|
||||||
SourceChangeCache.EndUpdate;
|
|
||||||
end;
|
|
||||||
DebugLn('ConvertDelphiToLazarusSource END');
|
DebugLn('ConvertDelphiToLazarusSource END');
|
||||||
Result:=true;
|
Result:=true;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user