|
@@ -245,7 +245,7 @@ type
|
|
public
|
|
public
|
|
constructor Create(const Parent: TRttiObject; const Signature: TProcedureSignature); reintroduce;
|
|
constructor Create(const Parent: TRttiObject; const Signature: TProcedureSignature); reintroduce;
|
|
|
|
|
|
- class function Invoke(const Instance: TValue; const Args: array of TValue): TValue;
|
|
|
|
|
|
+ class function Invoke(const Instance: TValue; const Args: array of TValue): TValue; // todo
|
|
|
|
|
|
property Flags: TProcedureFlags read FFlags;
|
|
property Flags: TProcedureFlags read FFlags;
|
|
property Parameters: TRttiParameterArray read FParameters;
|
|
property Parameters: TRttiParameterArray read FParameters;
|
|
@@ -654,9 +654,9 @@ type
|
|
|
|
|
|
TRttiMethodType = class(TRttiInvokableType)
|
|
TRttiMethodType = class(TRttiInvokableType)
|
|
private
|
|
private
|
|
- FCallConv: TCallConv;
|
|
|
|
- FReturnType: TRttiType;
|
|
|
|
- FParams, FParamsAll: TRttiParameterArray;
|
|
|
|
|
|
+ //FCallConv: TCallConv;
|
|
|
|
+ //FReturnType: TRttiType;
|
|
|
|
+ //FParams, FParamsAll: TRttiParameterArray;
|
|
function GetMethodKind: TMethodKind;
|
|
function GetMethodKind: TMethodKind;
|
|
protected
|
|
protected
|
|
function GetMethodTypeInfo : TTypeInfoMethodVar;
|
|
function GetMethodTypeInfo : TTypeInfoMethodVar;
|
|
@@ -676,7 +676,7 @@ type
|
|
|
|
|
|
TRttiProcedureType = class(TRttiInvokableType)
|
|
TRttiProcedureType = class(TRttiInvokableType)
|
|
private
|
|
private
|
|
- FParams, FParamsAll: TRttiParameterArray;
|
|
|
|
|
|
+ //FParams, FParamsAll: TRttiParameterArray;
|
|
function GetProcTypeInfo: TTypeInfoProcVar;
|
|
function GetProcTypeInfo: TTypeInfoProcVar;
|
|
protected
|
|
protected
|
|
function GetParameters(aWithHidden: Boolean): TRttiParameterArray; override;
|
|
function GetParameters(aWithHidden: Boolean): TRttiParameterArray; override;
|
|
@@ -2437,6 +2437,7 @@ end;
|
|
function TRttiType.GetMethods(const aName: String): TRttiMethodArray;
|
|
function TRttiType.GetMethods(const aName: String): TRttiMethodArray;
|
|
begin
|
|
begin
|
|
Result:=nil;
|
|
Result:=nil;
|
|
|
|
+ if aName='' then ;
|
|
end;
|
|
end;
|
|
|
|
|
|
function TRttiType.GetMethod(const aName: String): TRttiMethod;
|
|
function TRttiType.GetMethod(const aName: String): TRttiMethod;
|
|
@@ -2685,6 +2686,7 @@ begin
|
|
SetLength(Result,Length(MethodTypeInfo.ProcSig.Params));
|
|
SetLength(Result,Length(MethodTypeInfo.ProcSig.Params));
|
|
For I:=0 to Length(MethodTypeInfo.ProcSig.Params)-1 do
|
|
For I:=0 to Length(MethodTypeInfo.ProcSig.Params)-1 do
|
|
Result[i]:=TRttiParameter.Create(Self,MethodTypeInfo.ProcSig.Params[i]);
|
|
Result[i]:=TRttiParameter.Create(Self,MethodTypeInfo.ProcSig.Params[i]);
|
|
|
|
+ if aWithHidden then ;
|
|
end;
|
|
end;
|
|
|
|
|
|
function TRttiMethodType.GetCallingConvention: TCallConv;
|
|
function TRttiMethodType.GetCallingConvention: TCallConv;
|
|
@@ -2765,6 +2767,7 @@ begin
|
|
SetLength(Result,Length(ProcTypeInfo.ProcSig.Params));
|
|
SetLength(Result,Length(ProcTypeInfo.ProcSig.Params));
|
|
For I:=0 to Length(ProcTypeInfo.ProcSig.Params)-1 do
|
|
For I:=0 to Length(ProcTypeInfo.ProcSig.Params)-1 do
|
|
Result[i]:=TRttiParameter.Create(Self,ProcTypeInfo.ProcSig.Params[i]);
|
|
Result[i]:=TRttiParameter.Create(Self,ProcTypeInfo.ProcSig.Params[i]);
|
|
|
|
+ if aWithHidden then ;
|
|
end;
|
|
end;
|
|
|
|
|
|
function TRttiProcedureType.GetCallingConvention: TCallConv;
|
|
function TRttiProcedureType.GetCallingConvention: TCallConv;
|
|
@@ -2939,7 +2942,10 @@ end;
|
|
|
|
|
|
class function TRttiProcedureSignature.Invoke(const Instance: TValue; const Args: array of TValue): TValue;
|
|
class function TRttiProcedureSignature.Invoke(const Instance: TValue; const Args: array of TValue): TValue;
|
|
begin
|
|
begin
|
|
-
|
|
|
|
|
|
+ if Instance.IsEmpty then ;
|
|
|
|
+ if Args=nil then ;
|
|
|
|
+ Result:=Default(TValue);
|
|
|
|
+ raise Exception.Create('20250726092613 not yet implement');
|
|
end;
|
|
end;
|
|
|
|
|
|
end.
|
|
end.
|