codetools: fixed FindMethodNodeInImplementation for program

git-svn-id: trunk@36969 -
This commit is contained in:
mattias 2012-04-22 10:13:34 +00:00
parent c7543c32cb
commit ca20fbb994

View File

@ -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;