mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2026-01-06 11:20:37 +01:00
codetools: append node ctnEndPoint for programs
git-svn-id: trunk@29795 -
This commit is contained in:
parent
eb4109ed4e
commit
ac2f3730dc
@ -1656,7 +1656,7 @@ begin
|
||||
// and no update is needed
|
||||
if (ord(Range)>ord(ScannedRange)) and (not LastErrorIsValid) then begin
|
||||
{$IFDEF VerboseUpdateNeeded}
|
||||
DebugLn(['TLinkScanner.UpdateNeeded because range increased Range=',ord(Range),' ScannedRange=',ord(ScannedRange)]);
|
||||
DebugLn(['TLinkScanner.UpdateNeeded because range increased from ',dbgs(ScannedRange),' to ',dbgs(Range)]);
|
||||
{$ENDIF}
|
||||
exit;
|
||||
end;
|
||||
|
||||
@ -3133,8 +3133,14 @@ begin
|
||||
if (CurPos.Flag<>cafPoint) then
|
||||
SaveRaiseException(ctsMissingPointAfterEnd);
|
||||
// close program
|
||||
CurNode.EndPos:=CurPos.EndPos;
|
||||
CurNode.EndPos:=CurPos.StartPos;
|
||||
EndChildNode;
|
||||
// add endpoint node
|
||||
CreateChildNode;
|
||||
CurNode.Desc:=ctnEndPoint;
|
||||
CurNode.EndPos:=CurPos.StartPos;
|
||||
EndChildNode;
|
||||
ScannedRange:=lsrEnd;
|
||||
CurSection:=ctnNone;
|
||||
end;
|
||||
Result:=true;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user