mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-12 10:59:20 +02:00
IDE: code observer: unsorted class visibility: ignore first published class section
git-svn-id: trunk@19749 -
This commit is contained in:
parent
bf401e3e3b
commit
d3391736dc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user