codetools: TPascalReaderTool.ProcNodeHasSpecifier: parse header

git-svn-id: trunk@31215 -
This commit is contained in:
mattias 2011-06-14 12:36:31 +00:00
parent 7b8e8360b8
commit 74e195a9e2

View File

@ -856,6 +856,9 @@ end;
function TPascalReaderTool.MoveCursorToProcSpecifier(ProcNode: TCodeTreeNode;
ProcSpec: TProcedureSpecifier): boolean;
begin
if ProcNode.FirstChild=nil then begin
exit(false);
end;
MoveCursorToFirstProcSpecifier(ProcNode);
while (CurPos.StartPos<=ProcNode.FirstChild.EndPos) do begin
if CurPos.Flag=cafSemicolon then begin
@ -1077,6 +1080,11 @@ end;
function TPascalReaderTool.ProcNodeHasSpecifier(ProcNode: TCodeTreeNode;
ProcSpec: TProcedureSpecifier): boolean;
begin
Result:=false;
if ProcNode=nil then exit;
if (ProcNode.FirstChild=nil)
or ((ProcNode.SubDesc and ctnsNeedJITParsing)>0) then
BuildSubTreeForProcHead(ProcNode);
// ToDo: ppu, dcu