Now the properties has the visibility info.

This commit is contained in:
Henrique Gottardi Werlang 2025-03-15 10:45:21 -03:00 committed by Michael Van Canneyt
parent 516be722e2
commit c0d00ca638

View File

@ -170,7 +170,7 @@ type
function GetName: String; override;
function GetParent: TRttiType;
function GetStrictVisibility: Boolean; virtual;
function GetVisibility: TMemberVisibility; virtual;
function GetVisibility: TMemberVisibility;
function LoadCustomAttributes: TCustomAttributeArray; override;
public
constructor Create(AParent: TRttiType; ATypeInfo: TTypeMember); reintroduce;
@ -309,8 +309,6 @@ type
function GetPropertyType: TRttiType;
function GetIsWritable: boolean; override;
function GetIsReadable: boolean; override;
protected
function GetVisibility: TMemberVisibility; override;
public
constructor Create(AParent: TRttiType; ATypeInfo: TTypeMember);
@ -2362,12 +2360,6 @@ begin
Result := PropertyTypeInfo.Getter<>'';
end;
function TRttiProperty.GetVisibility: TMemberVisibility;
begin
// At this moment only published rtti-property-info is supported by pas2js
Result := mvPublished;
end;
{ TRttiType }
function TRttiType.GetName: string;