mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 23:50:25 +02:00
codetools: fixed FindMethodNodeInImplementation for program
git-svn-id: trunk@36969 -
This commit is contained in:
parent
c7543c32cb
commit
ca20fbb994
@ -483,8 +483,9 @@ begin
|
||||
if (AMethodName='') or (AClassName='') then exit;
|
||||
if BuildTreeBefore then BuildTree(lsrEnd);
|
||||
// find implementation node
|
||||
SectionNode:=FindImplementationNode;
|
||||
if SectionNode=nil then exit;
|
||||
SectionNode:=Tree.Root;
|
||||
while SectionNode<>nil do begin
|
||||
if SectionNode.Desc in [ctnProgram,ctnImplementation] then begin
|
||||
ANode:=SectionNode.FirstChild;
|
||||
{$IFDEF CTDEBUG}
|
||||
DebugLn('[TEventsCodeTool.FindMethodNodeInImplementation] A AMethodName=',AClassName,'.',AMethodName);
|
||||
@ -511,6 +512,9 @@ begin
|
||||
ANode:=ANode.NextBrother;
|
||||
end;
|
||||
end;
|
||||
SectionNode:=SectionNode.NextBrother;
|
||||
end;
|
||||
end;
|
||||
|
||||
function TEventsCodeTool.FindMethodTypeInfo(ATypeInfo: PTypeInfo;
|
||||
const AStartUnitName: string): TFindContext;
|
||||
|
Loading…
Reference in New Issue
Block a user