IDE: code observer: unsorted class visibility: ignore first published class section

git-svn-id: trunk@19749 -
This commit is contained in:
mattias 2009-05-01 18:28:33 +00:00
parent bf401e3e3b
commit d3391736dc

View File

@ -910,6 +910,7 @@ begin
try
while CodeNode<>nil do begin
case CodeNode.Desc of
ctnBeginBlock:
begin
if (CodeNode.SubDesc and ctnsNeedJITParsing)<>0 then
@ -1015,8 +1016,9 @@ begin
and (CodeNode.PriorBrother.Desc>CodeNode.Desc)
then begin
if (CodeNode.PriorBrother.Desc=ctnClassPublished)
and (CodeNode.PriorBrother.PriorBrother=nil) then
begin
and ((CodeNode.PriorBrother.PriorBrother=nil)
or (not (CodeNode.PriorBrother.PriorBrother.Desc in AllClassBaseSections)))
then begin
// the first section can be published
end else begin
// the prior section was more visible