mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-09-15 20:59:04 +02:00
Removed the GetName implementation because the new RTTI information show the constructor methods with the names correctly.
This commit is contained in:
parent
6909bd9f3e
commit
ca98c509f8
@ -273,8 +273,6 @@ type
|
||||
function GetProcedureSignature: TRttiProcedureSignature;
|
||||
function GetReturnType: TRttiType;
|
||||
protected
|
||||
function GetName: String; override;
|
||||
|
||||
property ProcedureSignature: TRttiProcedureSignature read GetProcedureSignature;
|
||||
public
|
||||
function GetParameters: TRttiParameterArray;
|
||||
@ -2216,14 +2214,6 @@ begin
|
||||
Result := ProcedureSignature.ReturnType;
|
||||
end;
|
||||
|
||||
function TRttiMethod.GetName: String;
|
||||
begin
|
||||
Result := inherited;
|
||||
|
||||
if IsConstructor then
|
||||
Result := Result.SubString(0, Result.IndexOf('$'));
|
||||
end;
|
||||
|
||||
function TRttiMethod.GetProcedureSignature: TRttiProcedureSignature;
|
||||
begin
|
||||
if not Assigned(FProcedureSignature) then
|
||||
|
Loading…
Reference in New Issue
Block a user