codetools: fixed av when find declaration after function keyword

git-svn-id: trunk@17156 -
This commit is contained in:
mattias 2008-10-30 10:11:18 +00:00
parent 7e0078d527
commit 2e17592d31

View File

@ -4076,6 +4076,8 @@ begin
Result:=ifrProceedSearch;
// if proc is a method body, search in class
// -> find class name
if ProcContextNode.FirstChild=nil then
exit(ifrProceedSearch);
MoveCursorToNodeStart(ProcContextNode.FirstChild);
ReadNextAtom; // read name
if not AtomIsIdentifier(false) then exit; // ignore operator procs