rtl: added TTypeMember.Visibility

This commit is contained in:
mattias 2025-01-07 14:04:23 +01:00
parent e852fabe71
commit d65a4d6fd0

View File

@ -200,6 +200,15 @@ type
);
TTypeMemberKinds = set of TTypeMemberKind;
TTypeMemberVisibility = (
tmvPrivate,
tmvProtected,
tmvPublic,
tmvPublished,
tmvPublishedPublic // public for extended RTTI, published for basic RTTI, cvPublished was missing in the RTTI directive
);
TTypeMemberVisibilities = set of TTypeMemberVisibility;
{ TTypeMember }
TTypeMember = class external name 'rtl.tTypeMember'
@ -207,6 +216,7 @@ type
Name: String external name 'name';
Kind: TTypeMemberKind external name 'kind';
Attributes: TTypeInfoAttributes external name 'attr'; // can be nil
Visibility: TTypeMemberVisibility external name 'visibility';
end;
TTypeMemberDynArray = array of TTypeMember;