|
@@ -1893,9 +1893,19 @@ begin
|
|
end;
|
|
end;
|
|
|
|
|
|
procedure TRttiInstanceMethod.ResolveAttributes;
|
|
procedure TRttiInstanceMethod.ResolveAttributes;
|
|
|
|
+
|
|
|
|
+var
|
|
|
|
+ tbl : PAttributeTable;
|
|
|
|
+ i : Integer;
|
|
|
|
+
|
|
begin
|
|
begin
|
|
FAttributesResolved:=True;
|
|
FAttributesResolved:=True;
|
|
- // Todo !!
|
|
|
|
|
|
+ tbl:=FHandle^.AttributeTable;
|
|
|
|
+ if not (assigned(Tbl) and (Tbl^.AttributeCount>0)) then
|
|
|
|
+ exit;
|
|
|
|
+ SetLength(FAttributes,Tbl^.AttributeCount);
|
|
|
|
+ For I:=0 to Length(FAttributes)-1 do
|
|
|
|
+ FAttributes[I]:={$IFDEF FPC_DOTTEDUNITS}System.{$ENDIF}TypInfo.GetAttribute(Tbl,I);
|
|
end;
|
|
end;
|
|
|
|
|
|
function TRttiInstanceMethod.GetParameters(aWithHidden: Boolean): TRttiParameterArray;
|
|
function TRttiInstanceMethod.GetParameters(aWithHidden: Boolean): TRttiParameterArray;
|