codetools: fixed setting EndPos for parameter types array of identifier

git-svn-id: trunk@17129 -
This commit is contained in:
mattias 2008-10-24 15:59:36 +00:00
parent 7e1fb92a72
commit 8f3ab8527b

View File

@ -1296,7 +1296,8 @@ begin
if not UpAtomIs('OF') then
if ExceptionOnError then
RaiseStringExpectedButAtomFound('"of"')
else exit;
else
exit;
if not Extract then ReadNextAtom else ExtractNextAtom(copying,Attr);
if UpAtomIs('CONST') then begin
if (phpCreateNodes in Attr) then begin
@ -1353,10 +1354,14 @@ begin
EndChildNode;
end;
if (phpCreateNodes in Attr) then begin
if IsFileType then
if IsFileType then begin
CurNode.EndPos:=CurPos.EndPos;
EndChildNode;
if IsArrayType then
end;
if IsArrayType then begin
CurNode.EndPos:=CurPos.EndPos;
EndChildNode;
end;
end;
end else begin
if ExceptionOnError then