mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 23:59:07 +02:00
codetools: clean up
git-svn-id: trunk@26154 -
This commit is contained in:
parent
433b03a717
commit
cde3a2dc45
@ -1,13 +1,13 @@
|
|||||||
{ This file was automatically created by Lazarus. Do not edit!
|
{ This file was automatically created by Lazarus. Do not edit!
|
||||||
This source is only used to compile and install the package.
|
This source is only used to compile and install the package.
|
||||||
}
|
}
|
||||||
|
|
||||||
unit ChmHelpPkg;
|
unit chmhelppkg;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
LazChmHelp, LazarusPackageIntf;
|
LazChmHelp, LazarusPackageIntf;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
|
@ -3923,17 +3923,6 @@ var
|
|||||||
PosTree.Add(p);
|
PosTree.Add(p);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure AddCodePosition(const NewCodePos: TCodeXYPosition);
|
|
||||||
var
|
|
||||||
AddCodePos: PCodeXYPosition;
|
|
||||||
begin
|
|
||||||
if ListOfPCodeXYPosition=nil then ListOfPCodeXYPosition:=TFPList.Create;
|
|
||||||
New(AddCodePos);
|
|
||||||
AddCodePos^:=NewCodePos;
|
|
||||||
ListOfPCodeXYPosition.Add(AddCodePos);
|
|
||||||
//debugln('TFindDeclarationTool.FindReferences.AddCodePosition line=',dbgs(NewCodePos.Y),' col=',dbgs(NewCodePos.X));
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure ReadIdentifier(IsComment: boolean);
|
procedure ReadIdentifier(IsComment: boolean);
|
||||||
var
|
var
|
||||||
IdentEndPos: LongInt;
|
IdentEndPos: LongInt;
|
||||||
@ -4267,7 +4256,7 @@ begin
|
|||||||
while AVLNode<>nil do begin
|
while AVLNode<>nil do begin
|
||||||
StartPos:=PChar(AVLNode.Data)-PChar(Pointer(Src))+1;
|
StartPos:=PChar(AVLNode.Data)-PChar(Pointer(Src))+1;
|
||||||
if CleanPosToCaret(StartPos,ReferencePos) then
|
if CleanPosToCaret(StartPos,ReferencePos) then
|
||||||
AddCodePosition(ReferencePos);
|
AddCodePosition(ListOfPCodeXYPosition,ReferencePos);
|
||||||
AVLNode:=PosTree.FindPrecessor(AVLNode);
|
AVLNode:=PosTree.FindPrecessor(AVLNode);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user