mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 04:19:47 +02:00
IDE: code observer: empty class sections: ignore first published class section, bug #13633
git-svn-id: trunk@19750 -
This commit is contained in:
parent
d3391736dc
commit
c62f7d1f75
@ -1028,12 +1028,18 @@ begin
|
||||
if (cefcUnsortedClassMembers in ObserverCats)
|
||||
then
|
||||
CheckUnsortedClassMembers(CodeNode);
|
||||
if (cefcEmptyClassSections in ObserverCats) and
|
||||
(CodeNode.FirstChild=nil) and
|
||||
((CodeNode.Desc <> ctnClassPublished) or (CodeNode.PriorBrother<>nil)) then
|
||||
if (cefcEmptyClassSections in ObserverCats)
|
||||
and (CodeNode.FirstChild=nil) then
|
||||
begin
|
||||
// empty class section
|
||||
AddCodeNode(cefcEmptyClassSections,CodeNode);
|
||||
if (CodeNode.Desc=ctnClassPublished)
|
||||
and ((CodeNode.PriorBrother=nil)
|
||||
or (not (CodeNode.PriorBrother.Desc in AllClassBaseSections)))
|
||||
then begin
|
||||
// the first section can be empty
|
||||
end else begin
|
||||
// empty class section
|
||||
AddCodeNode(cefcEmptyClassSections,CodeNode);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user