codetools: fixed parsing interface

git-svn-id: trunk@33718 -
This commit is contained in:
mattias 2011-11-23 08:57:18 +00:00
parent 0748370917
commit 9b4fd7d602

View File

@ -4007,7 +4007,7 @@ begin
end; end;
if CurPos.Flag=cafEdgedBracketOpen then if CurPos.Flag=cafEdgedBracketOpen then
ReadGUID; ReadGUID;
// parse till "end" of interface // parse till "end" of interface/dispinterface/objcprotocol
repeat repeat
if not ParseInnerClass(CurPos.StartPos,CurPos.EndPos-CurPos.StartPos) then if not ParseInnerClass(CurPos.StartPos,CurPos.EndPos-CurPos.StartPos) then
begin begin
@ -4023,8 +4023,10 @@ begin
EndChildNode; EndChildNode;
end; end;
// end last class section (public, private, ...) // end last class section (public, private, ...)
CurNode.EndPos:=CurPos.StartPos; if CurNode.Desc in AllClassSections then begin
EndChildNode; CurNode.EndPos:=CurPos.StartPos;
EndChildNode;
end;
end else begin end else begin
// forward definition // forward definition
CurNode.SubDesc:=CurNode.SubDesc+ctnsForwardDeclaration; CurNode.SubDesc:=CurNode.SubDesc+ctnsForwardDeclaration;