fcl-passrc: fixed publish all members for typeinfo

This commit is contained in:
mattias 2022-02-12 21:14:30 +01:00
parent 925dc4bc75
commit 7be86f4635

View File

@ -1296,12 +1296,8 @@ begin
continue; // attributes are never used directly continue; // attributes are never used directly
if IsGenericElement(Member) then if IsGenericElement(Member) then
continue; continue;
if Member.ClassType=TPasVariable then // all members, even if not used
// all fields, even if not used UseSubEl(Member);
UseSubEl(Member)
else if IsUsed(Member) then
// all used non fields
UseSubEl(Member);
end; end;
UseSubEl(Rec.VariantEl); UseSubEl(Rec.VariantEl);
if Rec.Variants<>nil then if Rec.Variants<>nil then