mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 05:39:14 +02:00
Codetools: Improvement for FindContext for hidden methods. Part of issue #18929, patch from Anton
git-svn-id: trunk@41085 -
This commit is contained in:
parent
0ce3f9f9f0
commit
712a0979f0
@ -719,7 +719,13 @@ var
|
|||||||
begin
|
begin
|
||||||
FIdentSearchItem.Identifier:=Identifier;
|
FIdentSearchItem.Identifier:=Identifier;
|
||||||
// ignore ParamList (for checking function overloading)
|
// ignore ParamList (for checking function overloading)
|
||||||
AVLNode:=FIdentView.FindKey(FIdentSearchItem,@CompareIdentListSearchWithItemsWithoutParams);
|
AVLNode:=FIdentView.FindLeftMostKey(FIdentSearchItem,
|
||||||
|
@CompareIdentListSearchWithItemsWithoutParams);
|
||||||
|
while (AVLNode<>nil)
|
||||||
|
and not (TIdentifierListItem(AVLNode.Data).Node.Desc in [ctnProcedure,ctnProcedureHead])
|
||||||
|
and (CompareIdentifiers(Identifier,PChar(TIdentifierListItem(AVLNode.Data).Identifier))=0)
|
||||||
|
do
|
||||||
|
AVLNode:=FIdentView.FindSuccessor(AVLNode);
|
||||||
if AVLNode<>nil then
|
if AVLNode<>nil then
|
||||||
Result:=TIdentifierListItem(AVLNode.Data)
|
Result:=TIdentifierListItem(AVLNode.Data)
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user