|
@@ -2420,18 +2420,6 @@ begin
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|
|
-Function GetFieldList(TypeInfo: PTypeInfo; out FieldList : PExtendedFieldInfoTable; Visibilities: TVisibilityClasses): SizeInt;
|
|
|
|
-
|
|
|
|
-begin
|
|
|
|
- if TypeInfo^.Kind=tkRecord then
|
|
|
|
- Result:=GetRecordFieldList(PRecordData(GetTypeData(TypeInfo)),FieldList,Visibilities)
|
|
|
|
- else if TypeInfo^.Kind=tkClass then
|
|
|
|
- Result:=GetFieldInfos((PClassData(GetTypeData(TypeInfo))^.ClassType),FieldList,Visibilities)
|
|
|
|
- else
|
|
|
|
- Result:=0
|
|
|
|
-end;
|
|
|
|
-
|
|
|
|
-
|
|
|
|
Function GetFieldList(AClass: TClass; out FieldList: PExtendedFieldInfoTable; Visibilities: TVisibilityClasses): Integer;
|
|
Function GetFieldList(AClass: TClass; out FieldList: PExtendedFieldInfoTable; Visibilities: TVisibilityClasses): Integer;
|
|
|
|
|
|
Var
|
|
Var
|
|
@@ -2449,13 +2437,24 @@ begin
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|
|
|
|
|
|
-
|
|
|
|
Function GetFieldList(Instance: TObject; out FieldList: PExtendedFieldInfoTable; Visibilities: TVisibilityClasses): Integer;
|
|
Function GetFieldList(Instance: TObject; out FieldList: PExtendedFieldInfoTable; Visibilities: TVisibilityClasses): Integer;
|
|
|
|
|
|
begin
|
|
begin
|
|
Result:=GetFieldList(Instance.ClassType,FieldList,Visibilities);
|
|
Result:=GetFieldList(Instance.ClassType,FieldList,Visibilities);
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
+
|
|
|
|
+Function GetFieldList(TypeInfo: PTypeInfo; out FieldList : PExtendedFieldInfoTable; Visibilities: TVisibilityClasses): SizeInt;
|
|
|
|
+
|
|
|
|
+begin
|
|
|
|
+ if TypeInfo^.Kind=tkRecord then
|
|
|
|
+ Result:=GetRecordFieldList(PRecordData(GetTypeData(TypeInfo)),FieldList,Visibilities)
|
|
|
|
+ else if TypeInfo^.Kind=tkClass then
|
|
|
|
+ Result:=GetFieldList(GetTypeData(TypeInfo)^.ClassType,FieldList,Visibilities)
|
|
|
|
+ else
|
|
|
|
+ Result:=0
|
|
|
|
+end;
|
|
|
|
+
|
|
{ -- Methods -- }
|
|
{ -- Methods -- }
|
|
|
|
|
|
Function GetMethodInfos(aRecord: PRecordData; MethodList: PRecordMethodInfoTable; Visibilities: TVisibilityClasses): Integer;
|
|
Function GetMethodInfos(aRecord: PRecordData; MethodList: PRecordMethodInfoTable; Visibilities: TVisibilityClasses): Integer;
|