codetools: fixed TPascalReaderTool.ProcNodeHasSpecifier ctnProcedureHead

git-svn-id: trunk@41504 -
This commit is contained in:
mattias 2013-06-03 08:49:59 +00:00
parent 957f9973d0
commit 38d3882f1f

View File

@ -1260,6 +1260,8 @@ function TPascalReaderTool.ProcNodeHasSpecifier(ProcNode: TCodeTreeNode;
begin
Result:=false;
if ProcNode=nil then exit;
if ProcNode.Desc=ctnProcedureHead then
ProcNode:=ProcNode.Parent;
{$IFDEF CheckNodeTool}
if ProcNode.Desc<>ctnProcedure then begin
DebugLn(['TPascalReaderTool.ProcNodeHasSpecifier Desc=',ProcNode.DescAsString]);