codetools: parsing new class type section without following visibility keyword, bug #15335

git-svn-id: trunk@23127 -
This commit is contained in:
mattias 2009-12-13 19:46:04 +00:00
parent 8b2a207220
commit 4c254a359a

View File

@ -1076,8 +1076,19 @@ begin
CurNode.Desc:=ctnClassTypeProtected
else if UpAtomIs('PUBLISHED') then
CurNode.Desc:=ctnClassTypePublished
else
RaiseStringExpectedButAtomFound('public');
else begin
if CurNode.PriorBrother<>nil then begin
case CurNode.PriorBrother.Desc of
ctnClassPrivate: CurNode.Desc:=ctnClassTypePrivate;
ctnClassProtected: CurNode.Desc:=ctnClassTypeProtected;
ctnClassPublic: CurNode.Desc:=ctnClassTypePublic;
ctnClassPublished: CurNode.Desc:=ctnClassTypePublished;
else
RaiseStringExpectedButAtomFound('public');
end;
end;
UndoReadNextAtom;
end;
Result:=true;
end;